I am receiving a dictionary which I am binding to the combobox control. I wrote a loop that iterates through the items collection and changes some flagged items to a separator item. The problem is, if checkboxes are enabled, the seperator also receives a checkbox which sort of defeats the functionality. Is there something I could add to my loop that will disable the checkbox on these items?
Here is an example of the code that I'm using to create the seperators:
Here is an example of the code that I'm using to create the seperators:
public
static
void
FormatList(
ref
RadComboBox assignees)
{
for
(
int
i = 0; i < assignees.Items.Count; i++)
{
if
(assignees.Items[i].Text ==
"people"
)
{
assignees.Items[i] =
new
Telerik.Web.UI.RadComboBoxItem(
"Assign to Person:"
);
assignees.Items[i].IsSeparator =
true
;
}
if
(assignees.Items[i].Text ==
"group"
)
{
assignees.Items[i] =
new
Telerik.Web.UI.RadComboBoxItem(
"Assign to Group:"
);
assignees.Items[i].IsSeparator =
true
;
}
}
}