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

Sortable and moving items in observable arrays

1 Answer 129 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
RES
Top achievements
Rank 1
RES asked on 23 Apr 2014, 07:18 PM
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?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 24 Apr 2014, 10:25 AM
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!
 
Tags
Sortable
Asked by
RES
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or