Hi,
I have followed the sample from the following post ...
http://www.syncfusion.com/forums/120688/Get-the-checked-items-of-a-CheckListBox
but I cannot find a way to add a SelectedItem in code and have the associated checkbox ticked as a result.
I added a button to the main window, with the following click event:
private void Button_Click(object sender, RoutedEventArgs e)
{
ClassViewModel cvm = (ClassViewModel)DataContext;
cvm.SelectedStudents.Add(cvm.Students[3]);
}
When i click the button, the item gets added to the listbox as expected, BUT THE RESPECTIVE CHECKBOX REMAINS UNTICKED. Which is the problem!!
Please can you help? :0)
I have attached the project I am working with.
Attachment:
CheckedListBox_Sample_1d74edd7.rar