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

[Solved] Confusion over order of sorting of data using sortable and groupable

2 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
veer
Top achievements
Rank 1
veer asked on 11 Apr 2011, 08:08 AM
There is some confusion over how data is sorted in the two demos your have provided below

1) grouping demo
http://localhost:7777/grid/grouping

2) custom Ajax binding demo
http://localhost:7777/grid/custombinding

In case 1, the groupable sorting seems to take precedence whereas in 2, the column sorting takes precedence.

Try the following in both cases..
Sort the  contact name column in descending order and then try to group by this column.
In case 1, data is again sorted in ascending order of contact name whereas in 2, it remains in descending order.

After that, in case 1 sorting by clicking on the group button takes precedence(i.e clicking on the same column name to sort it is ignored and only)
whereas in 2, it is the reverse(i.e. clicking on column sorts the data so it takes precedence whereas sorting by clicking on grouping button is ignored). Is this merely due to how you have implemented the custom ajax binding or is it some bug in the grid ?

2 Answers, 1 is accepted

Sort by
0
Luis
Top achievements
Rank 1
answered on 23 Jan 2012, 10:49 PM
Owa, a sort of easter egg bug, right?
This is really annoying, I hope the folks at Telerik, or someone from the forum, talk about it.

Links to online demos;

1) grouping demo
http://demos.telerik.com/aspnet-mvc/grid/grouping

2) custom Ajax binding demo
http://demos.telerik.com/aspnet-mvc/grid/custombinding 

0
Alex
Top achievements
Rank 1
answered on 26 Jan 2012, 01:16 PM
I am curious about this as well.  It looks like a bug.  In the grouping example, sorting by the "Contact Name" column doesn't work because it's the grouping column, but it should work.  The custom binding helper documented in this thread has the same issue.  The server binding example also doesn't work, while the other binding examples seem to respect the sorting on the grouped column correctly.  What's going on?
Tags
Grid
Asked by
veer
Top achievements
Rank 1
Answers by
Luis
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or