I have enabled multiple selections in the radDropDownList with below code.
radDropDownList1.DropDownListElement.SelectionMode = SelectionMode.MultiExtended;
This list has 10 options and each user can choose one to 10 of them Now I want to retrieve the user selection that I saved in an array list ArrayList UserChoose = new ArrayList();
UserChoose = getUserChoose("username");
How can I through the code,Return user selections to the radDropDownList?
radDropDownList.Select = UserChoose ?
There is 2 ways how you can achive that. It will be little complex but it will work for you I believe.
Way 1:
As I think, you might not able to do that using only radDropDownList
. If still you want to do that using radDropDownList
then you have to customized radDropDownList
like in the telerik dicussion forum . Source code link is here .
Way 2:
You can use RadMultiColumnComboBox
. It will be easy to implement. At the same time it has more features. Check link of telerik over here=> RadMultiColumnComboBox Documentation .
Note: Personally I support the latter one rather than the former one.So, way 2 is much more effective.
The easiest replacement for a Windows Forms dropdown with multiple selection using Telerik is the RadCheckedDropDownList control, that is intended to provide that particular functionality.
It is available since version 2018.1.116.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.