Home > Enterprise >  Kendo dropdown list sorted order
Kendo dropdown list sorted order

Time:04-07

I have this kendo dropdown list in Angular how do I sort this list?

I dont see any sort param for kendo-dropdownlist on kendo website.

https://stackblitz.com/edit/angular-m6pome-dfnigx

CodePudding user response:

You can use orderBy (documentation):

public groupedData: GroupResult[] = groupBy(orderBy(this.source, [{ field: "name", dir: "asc" }]), [
  { field: "subcategory" }
]);

Fiddle: https://stackblitz.com/edit/angular-m6pome-w2dbsn

  • Related