Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
785
Dynamic column sizing
posted

Hi,

 

I'd like to have a combination of the ColumnWidth "SizeToCells" and "Star". What I would like is the last column to fit the available space but if the content does not fit, then it should display horizontal scrollbars.

I can achieve that behaviour by setting the MinimumWidth property. However, I don't know the minimum width and I would like the grid to do it for me (as it does for the SizeToCells).

I tried adding an extra column with ColumnWidth=Star and style it so that the 2 last columns look like one. My issue is then that I can't sort when clicking on one of the columns :(

 

Any input on that? Can I achieve what I want?

 

Cheers.

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi, 

    Unfortunately, we currently don't have such a sizing behavior, and i'm not really sure how you can achieve it with the xamWebGrid. 

    I'll keep thinking about it, and if i come up with anything, i'll let you know. 

    -SteveZ

Children