This is a migrated thread and some comments may be shown as answers.

Combox Checkbox get selected items

2 Answers 143 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gilbert van Veen
Top achievements
Rank 1
Gilbert van Veen asked on 09 Apr 2010, 02:20 PM
Hi,

I have a combobox which is manually filled with items. These items are read from a query and in a foreach I add the rows, as items, to the combobox. I needed the foreach because I needed to do some more handling etc.

In the combobox are the items shown and I can use the checkbox to select multiple items. But how can I determine which items are checked? Is it possible to itterate troug the items list to see which items are checked? The item itself, the object, doesn't have a IsChecked property or something.

It would be very nice if the combobox would have a combobox.selecteditems collection, this collection should contain all the selected items. This would be very helpfull.

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 15 Apr 2010, 08:02 AM
Hello,

The easiest way to get all checked items is to add a IsChecked (or similar) property on your data objects and bind it to the IsChecked property of the CheckBox. Then iterate through the data objects and find those with IsChecked=true.

RadComboBox does not allow multiple selection yet, but this feature is in our plans for the future updates of the control. I am unable to commit to a specific release date, though.

Best wishes,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Gilbert van Veen
Top achievements
Rank 1
answered on 15 Apr 2010, 08:48 AM
Valeri,

Thanks for the response. I am aware of your solution.

It just would be nice to get a selecteditems property which gives the user a list of all the checked/selected items.

I am glad that you are working on such a option.
Tags
ComboBox
Asked by
Gilbert van Veen
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Gilbert van Veen
Top achievements
Rank 1
Share this question
or