Completed
Last Updated: 03 Apr 2024 08:38 by ADMIN
Luke
Created on: 02 Apr 2024 08:47
Category: UI for Blazor
Type: Feature Request
0
DropDownList, ComboBox, AutoComplete, Multiselect Grouping Enhancement

Hi,

I haven't been able to find this as a request or as a topic of discussion (If it iss feel free to point me to it and close this request) but I feel the Grouping feature is limiting. If I use the group field in say the DropDownList the grouping works fine but it orders it alphabetically.

I propose adding a number of features to enhance this. The first being a GroupAscending or GroupDescending tag. Takes a boolean value and allows you to change the order to ascending (default/True) or descending (False).

The second, and more complicated feature upgrade could be a GroupOrder tag. This would take a List of the group field names ordered in the way you require and apply that order to the grouping in the DropDownList. for instance if you had the list ordered as Category 1, Category 3, Category 2 it would display the items in each grouping in that order top to bottom.

Regards,

Luke

1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 03 Apr 2024 08:38

Hello Luke,

You can achieve the desired behavior by using the OnRead event, available for all select components (DropDownList, ComboBox, AutoComplete, Multiselect) and providing a custom sort. Here is a REPL snippet that showcases how to achieve the desired behavior for the ComboBox, but the same approach applies to all other select components. 

I am marking this feature request as Completed as you can achieve the behavior with the current API.

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!