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

ComboBox with Multiple Selection & searchable, is it possible?

0 Answers 178 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shrikant
Top achievements
Rank 1
Shrikant asked on 06 Aug 2012, 06:28 AM
Hi Team,

I have a ComboBox with multiple Selection using checkbox template but I am failed to implement "searchable".
When I make combobox searchable using properties in xaml like
IsEditable="True"
telerik:TextSearch.TextPath="Text"

This leads to problem, I can not see selected items on SelectionBoxTemplate.
Please help me to solve this, below is my xaml code

<telerik:RadComboBox Margin="10" MaxWidth="230"  x:Name="ComboData"
 Visibility="Collapsed"  telerik:StyleManager.Theme="Office_Blue"
 SelectedIndex="0"   EmptyText="Select an Item..."  IsEditable="True"
 telerik:TextSearch.TextPath="Text"
 VerticalAlignment="Center" HorizontalAlignment="Left">
            <telerik:RadComboBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <VirtualizingStackPanel />
                </ItemsPanelTemplate>
            </telerik:RadComboBox.ItemsPanel>
            <telerik:RadComboBox.ItemTemplate>
                <DataTemplate>
                    <CheckBox Content="{Binding Path=Text}" IsChecked="{Binding Path=IsSelected,Mode=TwoWay}"
                              Height="16" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Top" />
                </DataTemplate>
            </telerik:RadComboBox.ItemTemplate>
            <telerik:RadComboBox.SelectionBoxTemplate >
                <DataTemplate>
                    <TextBlock Text="{Binding ElementName=ComboData, Path=ItemsSource.SelectedItemsText}" />
                </DataTemplate>
            </telerik:RadComboBox.SelectionBoxTemplate>
        </telerik:RadComboBox>

The code for multiple select combo box is found from
http://www.telerik.com/community/code-library/silverlight/general/a-multiselect-combobox.aspx

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Shrikant
Top achievements
Rank 1
Share this question
or