We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reordering items in ejListBox is not reflected in model.dataSource

Thread ID:





130883 Jun 8,2017 12:26 PM UTC Jun 9,2017 12:02 PM UTC JavaScript 1
Tags: ejListBox
Alexandru Boboc
Asked On June 8, 2017 12:26 PM UTC


I'm trying to use ejListBox to reorder a list of elements, as in your example here: http://js.syncfusion.com/demos/web/#!/bootstrap/listbox/reordering

When using the moveUp() and moveDown() methods of ejGridBox, elements are moving correctly, but the changes are not reflected in the model.dataSource of the ejListBox. 

Checkout the developer console when clicking the buttons: the order in the model.dataSource remains unchanged.

Is there a different way to get the newly ordered list?


Arun Palaniyandi [Syncfusion]
Replied On June 9, 2017 12:02 PM UTC

Hi Alexandru,   


Thanks for contacting Syncfusion support.   


When elements are moved up and down, the <li> elements are rearranged visually in the DOM and not in model. But if you want to order the dataSource model value, based on every reorder then you can achieve this in sample side itself.   


Please find the modified demo for your reference below:   



If the shared details and sample doesn’t meet your requirement, please give us more information to provide an alternative solution.       

Arun P.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon