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

[Solved] [Bug] Grid: Single mode sorting but can force multi sort

5 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eurotracs
Top achievements
Rank 1
Eurotracs asked on 21 Jan 2015, 01:11 PM

I've found a small bug in the grid which has an impact on sorting.
To reproduce this issue, execute the following:

Create a grid that allows SingleColumn sorting. DO NOT SET the following:

JavaScript
sortable: { mode: 'single' }

If configured like above, you won't be able to reproduce the bug.
It should be configured the following way:

JavaScript
sortable: true

If you configure the Grid with the MVC HtmlHelper (.Sortable(a => a.SortMode(GridSortMode.SingleColumn)), you will get the sortable: true as Javascript output.

- Enable the column menu
- Sort a column
- Sort another column by using the column menu (use the small arrow).

You have now achieved multi-column sorting while only a single column should be able to be sorted (default value of sortable is single!​).​
If you have server side sorting on, you will notice you will receive 2 objects in the sorts object.

5 Answers, 1 is accepted

Sort by
0
Eurotracs
Top achievements
Rank 1
answered on 21 Jan 2015, 01:13 PM
I've created a Dojo to demonstrate this issue: http://dojo.telerik.com/ubEbA

If you sort a column and click on a different column header, the sorting works like it is supposed to.
0
Dimiter Madjarov
Telerik team
answered on 23 Jan 2015, 06:47 AM
Hi Christiaan,


Thank you for reporting the issue. I have logged it for further investigation and fixing from the developers team. As a small sign of gratitude I also updated your Telerik points.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eurotracs
Top achievements
Rank 1
answered on 23 Jan 2015, 08:31 AM
Thank you for your response. Do you have any idea when this issue will be fixed? 

Kind regards
0
Dimiter Madjarov
Telerik team
answered on 23 Jan 2015, 09:02 AM
Hi Christiaan,


The issue has already been fixed and the fix will be available in the next internal build.
I wish you a great day!

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eurotracs
Top achievements
Rank 1
answered on 23 Jan 2015, 09:05 AM
Hi

Thank you for your fast response!
Great to hear the issue has already been fixed (this fast!).
We are looking forward to the new build!

Kind regards
Tags
Grid
Asked by
Eurotracs
Top achievements
Rank 1
Answers by
Eurotracs
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or