Sortable and moving items in observable arrays

2 posts, 0 answers
  1. RES
    RES avatar
    77 posts
    Member since:
    Sep 2010

    Posted 23 Apr 2014 Link to this post

    I notice in the Sortable demos you guys show how to move an item in a DataSource instance on the change event.  How would I go about properly doing this if I am using an ObservableArray instead?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 24 Apr 2014 Link to this post

    Hello,

    Basically the approach is similar - the developer should hook up to the change event of the Sortable widget which fires after DOM is re-arranged and use the splice method to modify the observable array.

    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