I am glad that you found my suggestion helpful.
In case you want to use a form and submit other form elements as well. then you may add a handler on the reorder event of the ListBox:
dataSource = e.sender.dataSource;
dataItem = e.dataItems
index = dataSource.indexOf(dataItem) + e.offset;
+ dataItem.uid +
Using this approach, I have reordered the list which kept the correct order in the form element as well. On submit, the form posts the option values in the order that they are in the hidden select element as a list of strings:
of the parameter that is expected in the controller should match so that the MVC binding can kick in, for example, my test ListBox has a .Name("lb")
*if you have two listboxes, use two lists with names to match the listboxes names:
Have a look at this alternative and let me know in case I may assist you further.
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.