How do I enable sortable functionality for a grid in AngularJS. Essentially I am looking for something like this:
However, my grid is an AngularJS Kendo Grid.
A demo link will be helpful.
4 Answers, 1 is accepted
Thank you very much for providing me a sample. However I am looking for a functionality where I will be able to rearrange the rows of data using drag and drop instead of clicking the column header for sort.
The interaction needs to be similar to this one: http://demos.telerik.com/kendo-ui/sortable/integration-grid where the user can rearrange the rows of data using drag and drop.
Thanks for your help.
In AngularJS application the Sortable widget should be initialized as parent directive. The filter configuration option should select all tr elements that are children of the .k-grid wrapper. I prepared an example:
Thank you very much for the example. This was what I exactly wanted! :)