I am new to Telerik and have a basic question. Does the Winform Listbox have the same feature set as the ASP Listbox? I am looking for item reordering and the ability to transfer from one listbox to another. Thanks...
3 Answers, 1 is accepted
0
Boyko Markov
Telerik team
answered on 17 Jul 2009, 10:21 AM
Hi James,
If I have understood you correctly you want to have Drag and Drop of items in a ListBox, and between two different ListBox controls.
There you will find a description and source code of an example demonstrating how to implement drag and drop and reordering of items between listboxes.
Feel free to contact me again, if you have another questions.
I wasn't looking for drag and drop. The ASP listbox has the ability to display buttons that enable you to rearrange the order of items in the listbox and transfer items from listbox to another. I was wondering if this feature was available in the winforms listbox?
0
Boyko Markov
Telerik team
answered on 23 Jul 2009, 06:47 AM
Hello James,
Unfortunately, we do not have support for this feature built-in the listbox control. However you can always put some buttons next to the listbox and implement it on your own. You can use in the implementation the Items collection of the control and the methods of the collection such as Add, AddRange, Remove, Insert, Clear. For example pressing the "Up" button will remove the selected item from the collection and then you can insert it one index before the selected index. The "Down" button will remove the selected item and insert it one index after the selected Index.
Feel free to write me back if you need more information.