Angular Binding Example for Sortable

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    33 posts
    Member since:
    Aug 2008

    Posted 21 Dec 2015 Link to this post

    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, Is there any better way to do it than to handle the event ( ?
  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 23 Dec 2015 Link to this post

    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.

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top