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

Freezing columns

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Siva
Top achievements
Rank 1
Siva asked on 13 Apr 2013, 04:54 AM
Hi,
I am using Radgrid, Freezing columns was not working on page load, after page is posted back its works fine. Can you suggest me the solution for this issue. Or Can u suggest me the root cause for this?
I am using the below code:
<ClientSettings ReorderColumnsOnClient="false" ClientEvents-OnKeyPress="RaiseCommand">
                <Selecting AllowRowSelect="true" />
                <ClientEvents OnRowClick="fnGridRowClick" OnRowMouseOver="fnGridRowMouseOver" />

                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="3"
                    ScrollHeight="600px" />

                <Resizing EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowColumnResize="false"
                    AllowResizeToFit="false"></Resizing>
            </ClientSettings>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 06 Aug 2013, 01:55 PM
Hi,

I tried your code and it is working fine at my side.Please try the below code snippet.If this doesn't help,please provide your full code.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None"
    AllowSorting="True" AllowPaging="True" PageSize="50" Width="750px" >
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2">
        </Scrolling>
    </ClientSettings>
    <MasterTableView TableLayout="Auto">
    </MasterTableView>
    <HeaderStyle Width="200px"></HeaderStyle>
    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</telerik:RadGrid>

Thanks,
Princy
Tags
Grid
Asked by
Siva
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or