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

Set Index

1 Answer 51 Views
Sortable
This is a migrated thread and some comments may be shown as answers.
CHRISTOPHER
Top achievements
Rank 1
Iron
CHRISTOPHER asked on 11 Nov 2019, 08:55 PM
I would like to persist the order of cards moved around by the user for the next time they open the page or window.  Is it possible to do this by somehow setting the index of these DIV tag cards inside their sortable container?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 13 Nov 2019, 01:28 PM

Hi Christopher,

The sortable widget does not provide api for arranging the elements via js. However, within the document ready event handler you should be able to arrange the elements in the saved order using the insertBefore method.

Regards,
Georgi
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Sortable
Asked by
CHRISTOPHER
Top achievements
Rank 1
Iron
Answers by
Georgi
Telerik team
Share this question
or