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

Multiple column sorting

2 Answers 2231 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 17 Feb 2020, 02:18 AM
Is multiple column sorting supported..?  Such as with combination of shift+mouse click to sort on multiple columns without losing sorting for previously sorted columns...

2 Answers, 1 is accepted

Sort by
1
Hetali
Telerik team
answered on 18 Feb 2020, 04:10 PM

Hi Edward,

Yes, the Kendo UI Grid supports multiple column sorting. Add the following SortSettings in the Sortable input to enable multiple column sorting:

<kendo-grid
  [sortable]="{
    mode: 'multiple'
  }">
</kendo-grid>

In this StackBlitz example, multiple columns can be sorted at the same time by clicking on the column headers without pressing the Shift key.

Use the following CSS snippet to hide the sort numbers in case you don't want to display them:

.k-link .k-sort-order {
  display: none;
}

I hope this helps. Please let me know if you have any further questions pertaining to the Sorting feature in the Kendo UI Grid.

Regards,
Hetali
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Edward
Top achievements
Rank 1
answered on 18 Feb 2020, 04:41 PM
Thanks will try...
Tags
Grid
Asked by
Edward
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Edward
Top achievements
Rank 1
Share this question
or