This is a migrated thread and some comments may be shown as answers.
Listbox feature
3 Answers 39 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 16 Jul 2009, 01:58 PM
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

Sort by
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.

In RadListBox this is not supported internally, but  we can do this very easily - the implementation is described in the Step by Step tutorial, in the RadListBox section. The full tutorial could be found at: http://www.telerik.com/support/documentation-and-tutorials/step-by-step-tutorial-for-winforms.aspx

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.


Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
James
Top achievements
Rank 1
answered on 17 Jul 2009, 09:07 PM
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.

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
James
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
James
Top achievements
Rank 1
Share this question
or