I have a list in a RadDropDown, that users can select multiple values from, these are then saved to a database in a comma separated string.
When I wish to edit the data I need the same checkboxes to be ticked.
My code is atttached, I'm getting the first value to tick, but on subseqent values the x is null and no further binding takes place. The value of the selectedItem matched the value of Usr from the array.
'populate the dropdown and pre select checkboxes
If Not IsDBNull(u_ds.Tables(0).Rows(0)("LinkedUsers")) Then
Dim arrLinkedUsers As Array = Split(u_ds.Tables(0).Rows(0)("LinkedUsers"), ",")
For Each Usr In arrLinkedUsers
ddlClinic.SelectedValue = Usr
Dim x As RadComboBoxItem = DirectCast(ddlClinic.SelectedItem, RadComboBoxItem)
If Not x Is Nothing Then
x.Checked = True