4 Answers, 1 is accepted
0
Hello Don,
I am afraid that this scenario is not supported. The ListBox widget is actually a select element with options. Sorting the options is not possible because it will prevent the user from being able to select items with mouse click.
If your aim is to create two containers with options that can be reordered my suggestion is to use standard list <ul> elements with <li> items. For example please check this demo page.
Regards,
Alexander Valchev
Telerik
I am afraid that this scenario is not supported. The ListBox widget is actually a select element with options. Sorting the options is not possible because it will prevent the user from being able to select items with mouse click.
If your aim is to create two containers with options that can be reordered my suggestion is to use standard list <ul> elements with <li> items. For example please check this demo page.
Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Don
Top achievements
Rank 1
answered on 08 May 2014, 02:58 PM
Hi Alexander,
Thank you very much for your help. I am new using Html.Kendo().Sortable(). Could you please let me know how do we post <ul> list data as model data to the controller? It would be great if you can provide a demo for this.Thank you.
Thank you very much for your help. I am new using Html.Kendo().Sortable(). Could you please let me know how do we post <ul> list data as model data to the controller? It would be great if you can provide a demo for this.Thank you.
0
Don
Top achievements
Rank 1
answered on 08 May 2014, 03:03 PM
Hi Alexander,
Thank you very much for your help. Could you please let me know how do we post <li> items as model data to the controller? It would be great if you can provide a demo for this. Thank you.
Thank you very much for your help. Could you please let me know how do we post <li> items as model data to the controller? It would be great if you can provide a demo for this. Thank you.
0
Hi Don,
Check this example - it serializes the selected list items and and saves them in a hidden input ready for a form submission.
Regards,
Petyo
Telerik
Check this example - it serializes the selected list items and and saves them in a hidden input ready for a form submission.
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!