Hi Supporters!
I've used 2 listbox controls ( i called available listbox and selected listbox) in a page. The available listbox is showing all available items which user can select. Other listbox is showing all user selected items. User can select an item or select many items in available listbox, and drag, drop those into selected listbox. This page seems like the demo ListBox page in Telerik website.
Both are support autopostback, drag & drop, multi-select... except reorder.
However, i met a strange behaviour when i drag some items in available listbox and drop to selected one. The order of dragging items are reversed when dropped into target listbox. For example:
Available listbox:
1. Item1.
2. Item2.
3. Item3.
4. Item4.
Selected listbox is empty.
I choose item1,item2,item3 in available listbox and drop into selected listbox. The order of those items is reversed. So the selected listbox has items in order of item3, item2, item1. I expect the selected listbox should keep the same order of source items.
I saw the same result in demo ListBox in Telerik demo site. Is it a bug of ListBox control? or do you have an alternative solution to work around?
Thanks for your attention.
Triet Pham.
I've used 2 listbox controls ( i called available listbox and selected listbox) in a page. The available listbox is showing all available items which user can select. Other listbox is showing all user selected items. User can select an item or select many items in available listbox, and drag, drop those into selected listbox. This page seems like the demo ListBox page in Telerik website.
Both are support autopostback, drag & drop, multi-select... except reorder.
However, i met a strange behaviour when i drag some items in available listbox and drop to selected one. The order of dragging items are reversed when dropped into target listbox. For example:
Available listbox:
1. Item1.
2. Item2.
3. Item3.
4. Item4.
Selected listbox is empty.
I choose item1,item2,item3 in available listbox and drop into selected listbox. The order of those items is reversed. So the selected listbox has items in order of item3, item2, item1. I expect the selected listbox should keep the same order of source items.
I saw the same result in demo ListBox in Telerik demo site. Is it a bug of ListBox control? or do you have an alternative solution to work around?
Thanks for your attention.
Triet Pham.