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

[Solved] Grouping and Scrolling

1 Answer 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
RR
Top achievements
Rank 1
RR asked on 13 Mar 2008, 02:40 AM

I have a grid that has scrolling and grouping enabled. Also, sorting, filtering and paging is enabled.

 <telerik:RadGrid ID="RadGrid1" DataSourceID="datasource1" runat="server" Width="97%"
            PageSize="20" AllowSorting="True" Skin="Office2007" AllowPaging="True"
            ShowGroupPanel="True" GridLines="None" AllowFilteringByColumn="True">
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>   
                                      
                <MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"
                    DataSourceID="CTK" Dir="LTR" Frame="Border" TableLayout="Auto" Width="100%" GroupLoadMode="Client" >
....


<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
AllowColumnsReorder="True" >
<Scrolling AllowScroll="True" UseStaticHeaders="True" >
</Scrolling>
</ClientSettings>

When I drag a column to group,the grouping does occur but  the horizontal scroll is lost, and all columns widths are shrunk to fit.

Is there a way to maintain the column widths and maintain horizontal scroll after grouping?

I would appreciate if someone could help me with this.

Thanks,
Tal





1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Mar 2008, 02:19 PM
Hello RR,

From your grid settings I see that you have TableLayout = Auto set for your master table along with Width=100% (and Width = 97% for the grid div). Note that these two settings are conflict since you choose to have auto layout for the grid table (respecting the width of the column content) and at the same time force the grid to stretch to 97% (and 100% width for the table).

Therefore, I suggest you either to set TableLayout = Fixed or remove the percentage widths from the grid and the master table to see the effect.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
RR
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or