I found UseStaticHeaders="true", which is what I needed. Static headers. This is great. But, when using static headers, my column widths seem to be ignored and are set to seemingly random values. I need both static headers AND fixed column widths! Is this possible?
4 Answers, 1 is accepted
0
Paul
Top achievements
Rank 1
answered on 03 Oct 2016, 01:56 PM
Apparently, the ItemStyle-Width and HeaderStyle-Width properties of radgrid columns essentially specify a minimum with, and not a maximum, or fixed. I want my radgrid to be 100% width of the radwindow which contains it, but this window is sizable. The radgrid has several columns which will contain data the length of which is predictable. Two numeric characters, for example. I want these columns to be FIXED in width. I don't want them to "grow" in width when I increase the size of the radwindow. Can't seem to do it if I have static headers turned on.
-Paul
(IIS 7.5, Windows Server 2012, VS 2012, C#, ASP.NET, Telerik runtime version 4.0.30319, IE11, Firefox 45.0)
0
Hello Paul,
I am afraid min-width for RadGrid columns is not supported. You can either set explicit widths to all columns, or arrange the page layout in such a way, that the whole RadGrid control does not shrink beyond a certain width (e.g. set min-width to its container).
Regards,
Kostadin
Telerik by Progress
I am afraid min-width for RadGrid columns is not supported. You can either set explicit widths to all columns, or arrange the page layout in such a way, that the whole RadGrid control does not shrink beyond a certain width (e.g. set min-width to its container).
Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Paul
Top achievements
Rank 1
answered on 06 Oct 2016, 11:07 AM
I'm not looking for a minimum width! I want a FIXED width. Apparently it is not possible to have FIXED column widths if you turn on static headers AND specify the radgrid's overall width to be 100% of the div that holds it. So now I'm using percent values for column widths, which is not what I wanted but it's as close as I can get with a radgrid.
0
Hi Paul,
I prepared a small sample where you can see that a fixed width of the column is working correctly with static headers. Could you please check out the attached sample and let me know how it differs from your real setup?
Regards,
Kostadin
Telerik by Progress
I prepared a small sample where you can see that a fixed width of the column is working correctly with static headers. Could you please check out the attached sample and let me know how it differs from your real setup?
Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.