Last post May 26, 2014 05:07 AM by sjnaughton
May 24, 2014 03:30 AM|IranianCuriousBoy|LINK
When I page list of items in Dynamic data, column widthes and also grid width changes with contents. Is there any way to overcome this issue?
May 24, 2014 03:37 AM|oned_gk|LINK
Manualy add the columns and set column width (fixed)
May 24, 2014 03:30 PM|sjnaughton|LINK
I have added some bits to the field template that look for an custom attribute CellCssClassAttribute that has the name of a CSS class fopr that column and then I walk up the control tree int eh field template find the HTML row I think it's a GridViewDataRow
and add the CSS class to it. or if you wanted to be more brutal you could have a Width attribute and apply a Style to the GridViewDataRow with the Width set.
May 25, 2014 02:19 AM|IranianCuriousBoy|LINK
Because this is an issue that needed to be resolved, I thought maybe Microsoft added some attributes to do that. I think GridWidth and ColumnWidth can be attribute candidates and I'll try to write them. I don't think its very complicated.
May 26, 2014 05:07 AM|sjnaughton|LINK
Thsi issue is the same for ANY webforms application, there is no special magic with DD that is not there in webforms, if there is any easy way you have doen this in webforms then you can do it the same in DD :)