This is a migrated thread and some comments may be shown as answers.

Unable to Freeze

1 Answer 30 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Rajesh asked on 08 Nov 2012, 01:49 PM

Hi all,
        I'm trying to freeze the first two columns of the grid. I'm not able to freeze it. Below is the code that I've used. Any help on this would be highly appreciated.



telerik:RadGrid ID="rgSupervisorDataEntry" runat="server" AllowMultiRowSelection="True"



SkinID="grdDynamic" ClientSettings-Scrolling-ScrollHeight="40%" AllowPaging="True"



PageSize="15" OnNeedDataSource="rgSupervisorDataEntry_NeedDataSource" Width="100%">



<headerstyle wrap="true" Width="10%" />



<mastertableview headerstyle-wrap="true" width="150%" TableLayout="Auto">



<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Width="100%" />






<telerik:GridClientSelectColumn UniqueName="CheckSelected" HeaderStyle-Width="10">



</telerik:GridClientSelectColumn >









<clientsettings allowkeyboardnavigation="true" allowcolumnsreorder="false" reordercolumnsonclient="false">



<Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />



<Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" ScrollHeight="300px" />



<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="true"



ClipCellContentOnResize="true" EnableRealTimeResize="true" />



<ClientEvents OnRowSelecting="RadGrid_RowSelecting" OnRowDeselecting="RadGrid_RowDeselecting" />







Thanks in advance!!


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 12 Nov 2012, 09:59 PM

I suggest that you try setting TableLayout property to FIxed and also set HeaderStyle.Width property to fixed pixel width  and let me know about the result.

All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question