This project has moved and is read-only. For the latest updates, please go here.

CheckboxCombobox - Select Alll option

Apr 27 at 8:03 AM
Hi, is there way, where i can select all items in checkbox combobox?

I want to add a checkbox with name: select all and he will select and unselect all items in collection.

Thanks for tips.
Apr 27 at 2:28 PM
Hi,

in Toolkit v3.4, you will have the option of adding(or not) a "select All" option in the CheckComboBox and CheckListBox through a bool property.

――――
Get more controls, features, updates and technical support with Xceed Toolkit Plus for WPF
May 6 at 1:18 AM
@BoucherS: Please make sure that the new "select All" option will:
  1. call the Command Property's Execute Method and Raise the ItemSelectionChanged Event for every item. Concerned since CheckComboBox is not doing so if SelectedItemsOverride is modified prior to the drop-down opening (as reported in this Issue: CheckComboBox : Command not raised if popup not opened).
  2. have a programmatic way to be checked / unchecked.
  3. work like it does in Excel Column Filters (e.g. a) if checked / unchecked, automatically checks / unchecks all items, b) allows override via checking / unchecking individual items afterwards and b) gets automatically checked / unchecked if all / < all items are explicitly selected).
May 8 at 8:36 PM
Hi,

In v3.4, the SelectAll option from the CheckComboBox will do all that what you want :
  1. Call the Command Property's Execute Method and Raise the ItemSelectionChanged Event for every item.
    Issue with "SelectedItemsOverride is modified prior to the drop-down opening" is already fixed and included in v3.4.
  2. The SelectAll checkBox can be checked in the UI and will be updated relative to the other checkboxes. For example, you have 4 items (plus the Select All checkbox) and you check the 4 items => the SelectAll check box will be automatically checked. If 1 of the item is unchecked, the SelectAll checkbox will become unchecked.
    In code-behind, You have have access to 2 new methods "SelectAll()" and "UnSelectAll()" which will check/uncheck all items and update the SelectAll checkBox.
  3. The SelectAll checkBox will react to the items it is related to.
――――
Get more controls, features, updates and technical support with Xceed Toolkit Plus for WPF
May 9 at 4:10 AM
Great! Thx!