I have a databound ComboBox that the application user needs to be able to 'check'. What need to do is to show the user which entries have already been 'checked', that is I need to be able to programmatically set the checked property of the items in the combobox. I can id the items to be checked, I just need the code to actually "check" the item.
Here is my code so far:
If item.IsInEditMode Then
Dim indx As Integer = ctlUserCombo.FindItemIndexByText("Test, Sabo")
Dim cmbo As RadComboBox = CType(item.FindControl("ctlUserCombo"), RadComboBox)
Dim cbox As RadComboBoxItem = CType(cmbo.Items(indx), RadComboBoxItem)
cmbo.Items(indx).Enabled = False
So I am able to change the Enabled property to False...what I need to be able to do is set the combobox to "Checked". However the RadComboBoxItem does not have a 'checked' property. Anyone know how to get the combo box to show checked = true for individual items in the combobox?
Thanks.