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

Frozen columns for multiple radgrids

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Archana
Top achievements
Rank 1
Archana asked on 19 Nov 2013, 10:06 PM
Hello,

I have multiple radgrids on a page and i'm trying to freeze left 2 columns for each.
But it works only for the first grid on the page.
Sample code is given below:
First two grids have same number of rows. Second row would have two grids similar to first row but would have less rows.
Can you please help with a sample code?
<table>
<tr>
                    <td style="width: 590px">
                        <asp:Panel ID="panelRateReport" ScrollBars="Horizontal" Width="99.8%" runat="server"
                            Height="410">
                            <telerik:RadGrid runat="server" ID="gridRate" AutoGenerateColumns="true" Height="99%"
                                Skin="Hay" GridLines="Both" OnPreRender="gridRate_PreRender" OnColumnCreated="gridRate_ColumnCreated"
                                OnItemDataBound="gridRate_ItemDataBound">
                            </telerik:RadGrid>
                        </asp:Panel>
                    </td>
                    <td style="width: 20px">
                    </td>
                    <td>
                        <asp:Panel ID="panel1" runat="server" ScrollBars="Horizontal" Width="99.8%" Height="410">
                            <telerik:RadGrid runat="server" ID="gridRateAbove10k" AutoGenerateColumns="true"
                                Height="99%" GridLines="Both" Skin="Hay" OnPreRender="gridRate_PreRender"
                                OnColumnCreated="gridRate_ColumnCreated" OnItemDataBound="gridRate_ItemDataBound">
                            </telerik:RadGrid>
                        </asp:Panel>
                    </td>
                </tr>
<tr>
....
</tr>
<table>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Nov 2013, 06:46 AM
Hi Archana,

Please try setting the following ClientSettings property for every Grid.

ASPX:
<ClientSettings Scrolling-FrozenColumnsCount="2" Scrolling-AllowScroll="true"
Scrolling-SaveScrollPosition="true" Scrolling-UseStaticHeaders="true">
</ClientSettings>

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