Combox Checkbox get selected items

3 posts, 1 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 09 Apr 2010 Link to this post

    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. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 15 Apr 2010 Link to this post

    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.
Back to Top