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
    Alexander Valchev avatar
    2895 posts

    Posted 24 Apr 2014 Link to this post


    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.

    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