I want to check the nth item of the ComboBox with CheckBox dynamically. How can this be achieved?
I tried the following and an exception is thrown
radCombo.Items(n).IsSelected = True
The XAML is as followed:
<DataTemplate x:Key="CheckBoxItemTemplate">
<CheckBox Content="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadComboBoxItem}, Path=Content}"
IsChecked="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadComboBoxItem}, Path=IsSelected}"
telerik:TouchManager.ShouldSuspendMousePromotion="True" Click="CheckBox_Click"/>
</DataTemplate>
<telerik:RadComboBox Name="radCombo" Height="30" Canvas.Left="650" Canvas.Top="55" Width=" 200" Background="White" AllowMultipleSelection="True" EmptyText="Select "
MultipleSelectionSeparator="," IsReadOnly="True" ItemTemplate="{StaticResource CheckBoxItemTemplate}" >
</telerik:RadComboBox>