Getting Started
This tutorial will walk you through the required steps for using RadMultiColumnComboBox.
Assembly References
In order to use RadMultiColumnComboBox in your application, you need to add references to the following assemblies:
- Telerik.Windows.Controls
- Telerik.Windows.Controls.GridView
- Telerik.Windows.Controls.Input
- Telerik.Windows.Data
Adding RadMultiColumnComboBox to the Project
Example 1: Defining RadMultiColumnComboBox Declaratively
<telerik:RadMultiColumnComboBox VerticalAlignment="Top">
</telerik:RadMultiColumnComboBox>
Figure 1: Defining RadMultiColumnComboBox
Note, that such definition would simply result in having an AutoComplete box. In order to have the actual RadGridView populated as a Content of the DropDown the GridViewItemsSourceProvider needs to be set as an ItemsSourceProvider. Note, that the DisplayMemberPath property of RadMultiColumnComboBox is also set. Its purpose is to point to a property of the bound data item present in the source collection of the ItemsSourceProvider. Thus, the control will be aware what value to display in the AutoCompleteBox. If not set, the control would simply call the ToString method of the bound item.
Example 2: Setting the GridViewItemsSourceProvider
<telerik:RadMultiColumnComboBox VerticalAlignment="Top" DisplayMemberPath="Name">
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding Clubs}" />
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
</telerik:RadMultiColumnComboBox>