Unplanned
Last Updated: 24 May 2022 13:45 by ADMIN
Harrison
Created on: 17 May 2022 16:07
Category: ComboBox
Type: Feature Request
6
Sort Direction Parameter for Grouping

Hi Telerik Team,

One of the requirements for my team project is that the ComboBox needs to be sorted in descending order to list dates. We need to sort the groups and the options inside the groups.

Ideally, the ComboBox can have a SortDirection parameter that defines the order as SortAscending or SortDescending, and can display the ComboBox groups and options accordingly.

 

===

Admin Edit:

It would be useful if you could disable the default sorting of the groups as well.

1 comment
ADMIN
Joana
Posted on: 24 May 2022 13:45

Hello Harrison,

Thank you for the request and I am glad that you have managed to achieve the scenario with the OnRead event.

For transparency in the request, the current approach with the OnRead event is to manipulate the GroupDescriptor available in the `DataSourceRequest` argument. More information can be found in the following documentation:

1. General OnRead article

https://docs.telerik.com/blazor-ui/common-features/data-binding/onread

2. ComboBox Grouping 

https://docs.telerik.com/blazor-ui/components/combobox/grouping 

3. GroupDescriptor Api Reference

https://docs.telerik.com/blazor-ui/api/Telerik.DataSource.GroupDescriptor 

https://docs.telerik.com/blazor-ui/api/Telerik.DataSource.DataSourceRequest 

We will further extend the documentation to contain more examples with OnRead. Thank you for the feedback.

Regards,
Joana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.