Can you sort a commandbardropdownlist?

1 Answer 19 Views
CommandBar
Troy
Top achievements
Rank 1
Veteran
Troy asked on 02 May 2021, 05:39 PM
I've looked but I can't find any way to select a sort on the object?  On a radDropDownList there is a "SortStyle" property.  This is what I am looking for, but on a CommandBarDropdownList.  I can of course sort the data beforehand, but I assumed there would be a SortStyle on it and if so, would rather use the existing functionality if it exists.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 May 2021, 12:48 PM

Hello, Troy,

Similar to RadDropDownList, CommandBarDropDownList also offers sorting out of the box. It is just necessary to set the CommandBarDropDownList.ListElement.SortStyle property:

 

 this.commandBarDropDownList1.ListElement.SortStyle = Telerik.WinControls.Enumerations.SortStyle.Descending;

 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
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/.

Troy
Top achievements
Rank 1
Veteran
commented on 04 May 2021, 12:54 AM

This solved the problem, thank you!
Tags
CommandBar
Asked by
Troy
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or