I have combobox and i bind it to th emplouyee object collection. Now item template should be like this . it should have a checkbox next to the Employee name . This i have already done
<telerik:RadComboBox Name="cmbList" MinWidth="100" DisplayMemberPath="{Binding ItemCountText}" StaysOpenOnEdit="True" OpenDropDownOnFocus="True" IsFilteringEnabled="True" IsTextSearchEnabled="True" Width="120" Margin="2,2,0,0" IsEditable="True" SelectionChanged="cmbList_SelectionChanged" telerik:TextSearch.TextPath="Name" KeyUp="cmbList_KeyUp" Height="20" >
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Name="chkItem" Click="chkItem_Click" IsChecked="{Binding isSelected}" />
<TextBlock Name="txtbckName" Text="{Binding Name}" Width="100" ToolTipService.ToolTip="{Binding Name}" />
</StackPanel>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>
Now when suer types automaticall all the emplyess having name with the alphabet should populate . this also i have done .
but the issue is user wants like when he check the checkbox , item should get selected and in the text search it should display "1 item selected".. so when user selects a 5 emplyees it should display as "5 itesm selected".
Since i already binded the search property to the "Name" i cannot do this . and in the edit mode selection box item template won't work.
Could you please provide me the solution as this is very immediate requirement and i am stopped.
Regards,
Phani