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

how to disable default sorting in kendo grid for groups?

6 Answers 1387 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Isha
Top achievements
Rank 1
Isha asked on 30 Aug 2018, 06:16 AM

How can we disable the sorting that is applied to groups in kendo grid.

 

 

Please reply asap.

6 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 03 Sep 2018, 12:46 PM
Hello Isha, 

By default in order to group any data it needs to be sorted first. This is why when grouping the records in a Grid the data is sorted by the grouping field. 

With that said, other fields will not be sorted out of the box. When sorting is applied there the fields in each group will be sorted.


Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Isha
Top achievements
Rank 1
answered on 25 Sep 2018, 04:55 AM

But I want to stop default sorting in groups. Is there any way to stop default sorting in group for grouped kendo grid?

I might want to display different categories on the basis of its sale amount, not by their alphabetic order.

for example:

I might want to display Pizza's, Burgers, Cold Drink's in following order, depending on some other field containing Order #.

0
Viktor Tachev
Telerik team
answered on 27 Sep 2018, 10:40 AM
Hi Isha,

Out of the box the groups will use alphabetical sort order. If you would like to use a different order for the Groups you can consider one of the approaches described in the following post.




Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Isha
Top achievements
Rank 1
answered on 03 Oct 2018, 07:37 PM

Hi Viktor,

In below dojo, You can check when I have applied row filtering, Days are filtered by 1, 2 etc values rather than Monday, tuesday etc. 

http://dojo.telerik.com/iSosijip/2

Please suggest.

0
Accepted
Viktor Tachev
Telerik team
answered on 05 Oct 2018, 10:40 AM
Hi Isha,

By default filtering will be applied using the field the column is bound to. In the dojo the Day column is bound to the val field.  Then template is used to show the day corresponding to the numeric value. 

If you would like the filter to show the actual days I would suggest customizing the filter by defining filterable.cell.template. You can use a DropDownList that will show list of the available dates and selecting one option will filter the results in the Grid. Check out the modified sample below where the approach is illustrated. 



Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Isha
Top achievements
Rank 1
answered on 08 Oct 2018, 09:54 AM
Thanks.
Tags
Grid
Asked by
Isha
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Isha
Top achievements
Rank 1
Share this question
or