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

Problem with Groping

1 Answer 13 Views
RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jana
Top achievements
Rank 1
jana asked on 22 Apr 2008, 07:54 AM
I face two problem with the grouping in datagrid

1. When i drag and drop a column on the Group panel Header(Drag a column header and drop it here to group by that column), grouping is not working properly. (Actually sometimes it is working, sometimes it is not. At that time when i click the refresh the refresh button in the Grid, it is working.)



2. After grouping the items when i refresh the page, the grouping is Undone. I want to maintain the state of grouping even after page refresh. What should i do?

Here is the code snippet which i have used.

<rad:RadGrid ID="rGrid" Width="100%" RadControlsDir="~/_controltemplates/OrganiceTeam/RadControls"
                SkinsPath="~/_controltemplates/OrganiceTeam/RadControls/Grid/Skins" Skin="Office2007" AutoGenerateColumns="false"
                EnableAJAX="true"  AllowPaging="true" PageSize="5" EnableOutsideScripts="true" runat="server" >
                <MasterTableView CommandItemDisplay="Bottom" >
                    <ExpandCollapseColumn Resizable="False" Visible="False">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <RowIndicatorColumn Visible="False">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                </MasterTableView>
                  <HeaderStyle CssClass="ms-menutoolbar" Font-Names="Tahoma" HorizontalAlign="Left" Wrap="False"/>
                <ItemStyle CssClass="ms-alternating" Height="22px" Font-Names="Tahoma" Wrap="False" />
                <AlternatingItemStyle Height="22px" Font-Names="Tahoma" Wrap="False"   />
                <ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True"  AllowDragToGroup="True" AllowGroupExpandCollapse="True" AllowExpandCollapse="True"   >
                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />
                </ClientSettings>             
                <GroupPanel Font-Names="Tahoma">
                    <PanelStyle Font-Names="Tahoma" />
                </GroupPanel>
            </rad:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Kiara
Top achievements
Rank 1
answered on 24 Apr 2008, 10:58 AM

Jana, do you use NeedDataSource or data source control binding for your grid? Thus the grouping feature should operate normally as in this demo:

http://www.telerik.com/demos/aspnet/Grid/Examples/GroupBy/OutlookStyle/DefaultCS.aspx

Kiara

Tags
RadControls
Asked by
jana
Top achievements
Rank 1
Answers by
Kiara
Top achievements
Rank 1
Share this question
or