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

Unable to Freeze

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajesh
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%" />

 

 

<Columns>

 

 

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

 

 

</telerik:GridClientSelectColumn >

 

 

</Columns>

 

 

</mastertableview>

 

 

<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" />

 

 

</clientsettings>

 

 

</telerik:RadGrid>

Thanks in advance!!

 

1 Answer, 1 is accepted

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

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,
Pavlina
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.
Tags
Grid
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or