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, 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) ?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 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.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top