Version

Configuring Multiple Selection (xamMultiColumnComboEditor)

Topic Overview

Purpose

This topic describes how to configure the multiple selection option in the xamMultiColumnComboEditor™ control.

Required background

The following topic is a prerequisite to understanding this topic:

Topic Purpose

This topic describes how to add a xamMultiColumnComboEditor control to your application and use some of its properties.

Multiple Selection Configuration Summary

Multiple selection configuration summary chart

The following table briefly explains the configurable aspects of multiple selection in the xamMultiColumnComboEditor control and maps them to the properties that configure them. Further details are available after the table.

Configurable aspect Details Properties

Enable Multiple selection to allow selecting many xamMultiColumnComboEditor items at the same time.

Facilitate Multiple selection by enabling the xamMultiColumnComboEditor items check boxes visibility.

Customize the selected values delimiter symbol

Enabling Multiple Items Selection

Overview

Enable multiple items selection in the xamMultiColumnComboEditor through the AllowMultipleSelection property.

Select the various xamMultiColumnComboEditor items by holding the CTRL keyboard key while using the mouse’s left button clicks or by checking the items check boxes.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Enable multiple items selection

true

Example

The screenshot below demonstrates how the xamMultiColumnComboEditor behaves as a result of the following settings:

Property Value

true

MCC Configuring Multiple Selection.png

Following is the code that implements this example.

In XAML:

<ig:XamMultiColumnComboEditor x:Name="MultiColumnComboEditor"
                              ItemsSource="{Binding Path=Products}"
                              Height="30" Width="300"
                              AutoGenerateColumns="False"
                              DisplayMemberPath="ProductName"
                              AllowMultipleSelection="True">
    <ig:XamMultiColumnComboEditor.Columns>
        <ig:TextComboColumn Key="ProductName"/>
        <ig:TextComboColumn Key="UnitsInStock"/>
    </ig:XamMultiColumnComboEditor.Columns>
</ig:XamMultiColumnComboEditor>

Enabling Items Check Boxes Visibility

Overview

Perform multiple selection in the xamMultiColumnComboEditor by checking the items check boxes. In order for the user to perform this, the items checkboxes must be visible.

The xamMultiColumnComboEditor CheckBoxVisibility property configures the visibility of the items check boxes.

Property settings

The following table maps the desired configuration to the property settings that manage it.

In order to: Use this property: And set it to:

Enable selection through items checkboxes

Visible

Example

The screenshot below demonstrates how the xamMultiColumnComboEditor looks as a result of the following settings:

Property Value

True

Visible

MCC Configuring Multiple Selection 2.png

Following is the code that implements this example.

In XAML:

<ig:XamMultiColumnComboEditor x:Name="MultiColumnComboEditor"
                              ItemsSource="{Binding Path=Products}"
                              Height="30" Width="300"
                              AutoGenerateColumns="False"
                              DisplayMemberPath="ProductName"
                              AllowMultipleSelection="True"
                              CheckBoxVisibility="Visible"
                              MultiSelectValueDelimiter="\">
    <ig:XamMultiColumnComboEditor.Columns>
        <ig:TextComboColumn Key="ProductName"/>
        <ig:TextComboColumn Key="UnitsInStock"/>
    </ig:XamMultiColumnComboEditor.Columns>
</ig:XamMultiColumnComboEditor>

Configuring the Selected Values Delimiter

Overview

Configure the selected values delimiter using the MultiSelectValueDelimiter property to set a custom symbol.

By default, when multiple selection is enabled, the selected values are displayed as comma separated string.

Property settings

The following table maps the desired behavior to the property settings that manage it.

In order to: Use this property: And set it to:

Customize the selected values delimiter

char

Related Content

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic describes user selection interactions in the xamMultiColumnComboEditor control.

This topic describes how to programmatically perform selection in the xamMultiColumnComboEditor control.