We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grouped by X, but sorting by Y

Thread ID:

Created:

Updated:

Platform:

Replies:

76952 Sep 30,2008 08:20 PM UTC Oct 3,2008 10:40 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Grouping
Nicolas Chamero
Asked On September 30, 2008 08:20 PM UTC

Hello, I try to figure out, for two days an grouping issue.
I've a grouping with different columns, and I want to grouped by "regionname" column but i want to sort by "PatTotal".
When I call my grouping grid is working perfect, but when I expand the rows the sorting change, by regioname.
i want to keep the sorting by PatTotal.

Anybody know about this issue?

the code I using is:


this.GridGroupingControl1.TableDescriptor.GroupedColumns.Clear();
SortColumnDescriptor gsd = new SortColumnDescriptor("RegionName");
gsd.SortDirection = ListSortDirection.Descending;
gsd.GroupSortOrderComparer = new PatTotalComparer(summaryColumn2.GetSummaryDescriptorName(), "Sum");
this.GridGroupingControl1.TableDescriptor.GroupedColumns.Add(gsd);



Rajarajeswari S [Syncfusion]
Replied On October 3, 2008 10:40 AM UTC

Hi Nicolas,

Thanks for using Syncfusion products.

Grouping a column will always sort the column. With SummaryInCaption, when you group a particular column, then the Grid is grouped and sorted based on the column. Now if you click on the other column (eg. EmployeeID) to sort, then the Grid will sort each group based on the column
(eg. EmployeeID). This is the default behavior of the control, and it works properly.

Please refer the sample from the below link, which illustrates this:

http://www.syncfusion.com/support/user/uploads/Sample_b8213fa4.zip


Please refer the video clip from the below link, illustrating the process clearly:

http://www.syncfusion.com/support/user/uploads/Summary_5309be95.zip

Please let me know if you have any other concerns.

Regards,
Raji




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;