This question is locked. New answers and comments are not allowed.
I created Multi Selection Rad Combo Box (Structured Rad Combo Box) as Below
and I Define The Structure for That Rad Combo Box In .CS Class Like That :
and I Created Rad Combo Box Items and Pass It in Page Constructor:
<telerik:RadComboBox HorizontalAlignment="Left" Margin="99,190,0,0" Name="radComboBox1" VerticalAlignment="Top" Width="250"> <telerik:RadComboBox.ItemTemplate> <DataTemplate> <CheckBox Content="{Binding Path=Text}" Checked="{Binding Path=Selected}" Height="16" HorizontalAlignment="Left" Margin="2" VerticalAlignment="Top" /> </DataTemplate> </telerik:RadComboBox.ItemTemplate> </telerik:RadComboBox>and I Define The Structure for That Rad Combo Box In .CS Class Like That :
public class ItemStructure { public int ID { get; set; } public string Text { get; set; } public bool Selected { get; set; } }source.Add(new ItemStructure() { ID = 1, Text = "Man UTD", }); source.Add(new ItemStructure() { ID = 2, Text = "Barcelona", Selected = true }); source.Add(new ItemStructure() { ID = 3, Text = "Real Madrid", }); source.Add(new ItemStructure() { ID = 4, Text = "Milan", Selected = true }); source.Add(new ItemStructure() { ID = 5, Text = "Inter", });
radComboBox1
.ItemsSource = source;
It Works Fine But I want when i Check or Uncheck Combo Box in Check and Uncheck Event i want to get Current Item For Checked CheckBox or Get ID Value For The Current Checked So How Can I handle It ???????????????