I have a question about the RadGrid when you use both paging and grouping. If all the groups are expanded it works fine. But if i collapse a couple of groups, the rowcount of the group are still counted as if they where expanded?
For instance if I have 5 groups with 10 rows each and a pagesize of 20. When I start the page all the groups are expanded, and the first page is shown with 2 groups of 10 rows each. That is good beacuse I want to show 20 rows on each page. But then if I have a "Collapse All"-button that I press, there is only 2 rows showing on my first page? The 2 groups collapsed is only 2 rows but is counted as if thay where expanded?
Is there any way to solve this? I want the page to show as much data as I have set in the pagesize.
This is my grid (I have tried both Client and Server GroupLoadMode):
<telerik:RadGrid ID="RadGridBuyWarrants" runat="server"
AllowSorting="true" AllowPaging="true" PageSize="20"
<PagerStyle Mode="NumericPages" />
<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="True"/>
<MasterTableView Width="100%" GroupLoadMode="Server">
This is my expand/collapse all code:
foreach (GridItem item in RadGridBuyWarrants.MasterTableView.Controls.Controls)
if (item is GridGroupHeaderItem)
Would be very greatful if anyone could help me solve this.