Hi,
I am using an ultrawebgrid with the StationaryMargins="Header" Option. There are a couple of queries I had about using this option.
1. When using the StationaryMargins is it possible to set the width of a UltraGridColumn to a percentage? Say 50% or something? Whenever I attempt to do this, it ends up not displaying that particular column.
2. Is there any way to set the height of the scrollable portion of the grid (Not the whole grid)
Thanks in advance.
You should be able to set the column to a relative width, just be sure you know what you're setting it relative to. Do you have a width set on the Grid? Also, how many columns are in there, and what are their widths set to? I think there might be stricter requirements on sizing when stationary margins are true, but I still expect that you'll be able to size the column with a %.
For setting the height of the scrollable portion of the grid - I think it I could better understand the question if I understood what result you're trying to acheive. Worse comes to worse, you can always write a targeted CSS selector which affects only the size of the desired element (the tbody in this case).
-Tony
Hi Tony,
Thanks. I managed to figure out how to resize the height of the grid. However the % based columns is still not possible. The moment I specify a width % for the column, the column does not render on the page. The grid does have a width and there are about 8 columns. If I remove the width attribute the page shows up fine with all columns having a default fixed width of 100.
Any other suggestions?
Thanks in advance