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

Grouping Message Incorrect

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 03 May 2012, 03:33 AM

I have an incorrect grouping message on the last page of my Grid:

"Business Unit: Technical Services (Showing 3 of 11 items. Group continues on the next page.)"

This is incorrect - there are only 3 records in this group and they are the last 3 records of the set. The virtual item count appears to be set correctly. If I set my page size to 10 or 20 from 50, the message no longer shows. For a Page Size of 30 records, the message is "Showing 3 of 21 items".

How do I fix this message?

The grouping code is as follows: 

GridGroupByExpression expression1 = new GridGroupByExpression(),
                    expression2= new GridGroupByExpression(),
                    expression3 = new GridGroupByExpression();
 
                expression1.SelectFields.Add(GetGridGroupByField("Division", "Division"));
                expression1.GroupByFields.Add(GetGridGroupByField("Division", null));
                expression2.SelectFields.Add(GetGridGroupByField("BusinessUnit", "Business Unit"));
                expression2.GroupByFields.Add(GetGridGroupByField("BusinessUnit", null));
                expression3.SelectFields.Add(GetGridGroupByField("State", "State"));
                expression3.GroupByFields.Add(GetGridGroupByField("State", null));
 
                rg.MasterTableView.GroupByExpressions.Add(expression1);
                rg.MasterTableView.GroupByExpressions.Add(expression2);
                rg.MasterTableView.GroupByExpressions.Add(expression3);

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 07 May 2012, 11:58 AM
Hello Peter,

Based on the provided information it is hard to say what is causing the described issue on your end. It will be helpful if you post your aspx page with the related code behind file. Additionally please note that the RadGrid grouping is not supported with custom paging. The RadGrid grouping is designed to get all data from the data source and perform grouping over it and then the paging is applied. Could you please verify that you do not use custom paging? Also could you please try setting the MasterTableView.EnableLinqGrouping property to "false" and let me know if the issue still persists.

Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Manoj
Top achievements
Rank 1
answered on 22 Sep 2012, 04:29 PM
Any solution or findings as i am facing the same problem?
0
Radoslav
Telerik team
answered on 26 Sep 2012, 07:08 AM
Hi Manoj,

Into the latest version of controls our developers fixed some issues concerning RadGrid groping, so could you please try upgrading to Q2 2012 SP2 version of the RadControls and let me know if the issue still exists. If the issue occurred in this version could you please send us a small runnable example where the problem could be reproduced. Thus we will be able to debug the project and provide you with more to-the-point answer. You could open a formal support ticket from your Telerik account and attach a ZIP file there.

Looking forward for your reply.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Manoj
Top achievements
Rank 1
Share this question
or