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

Angular Binding Example for Sortable

1 Answer 20 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 21 Dec 2015, 05:10 PM
There is no example of how to extract the final (updated) sort order out of the sortable in Kendo. Can this be added to the documentation (perhaps the example, http://demos.telerik.com/kendo-ui/sortable/angular)? Is there any better way to do it than to handle the event (http://dojo.telerik.com/OBuBo) ?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 23 Dec 2015, 05:21 PM
Hi Matthew,

There is no AngularJS specific way to handle the change event. Your current implementation is correct.

You should have in mind though that the Sortable widget reorders the DOM elements which is against AngularJS best practices where the View should be changed through the controller. In certain scenarios you may encounter troubles because the Sortable widget modifies the DOM and changes its state without the knowledge of the controller.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Sortable
Asked by
Matthew
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or