This is a migrated thread and some comments may be shown as answers.

Binding sort to a select dropdown?

1 Answer 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brainshark
Top achievements
Rank 1
Brainshark asked on 05 Feb 2013, 09:15 PM
I've been looking through the APIs to see if there's a documented method for binding the sort functions built into the header easily to a select dropdown? We want to hide the TH elements (using CSS) and only sort using a dropdown. Ideas?

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 07 Feb 2013, 05:39 PM
Hi Brainshark,

I am afraid the described functionality is not supported out of the box in Kendo UI, however you can easily achieve it using additional code. As a possible approach I can suggest the following:
  • Hook up to the DropDownList's change event; 
  • In such event use the dataSource's sort() method to sort the Grid.
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Brainshark
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or