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.
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/.