locked
Column and Grid Width in DD RRS feed

  • Question

  • User539648229 posted

    Hi

    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?

    Thanks

    Saturday, May 24, 2014 3:30 AM

Answers

  • User-330204900 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 24, 2014 3:30 PM

All replies

  • User-1716253493 posted

    Manualy add the columns and set column width (fixed)

    Saturday, May 24, 2014 3:37 AM
  • User-330204900 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, May 24, 2014 3:30 PM
  • User539648229 posted

    Hi

    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.

    Thanks 

    Sunday, May 25, 2014 2:19 AM
  • User-330204900 posted

    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 :)

    Monday, May 26, 2014 5:07 AM