Hi all,
I'm trying to build a user control that has a radCombox on it. One of the features of the combobox is that you can list the ID's of child radcomboboxes that will clear when the ItemsRequested event fires on the parent box. However, when I run the following code to get the child radComboBox, the Item.count is always 0, and the items in the box never clear, even when I clearly see items in the child radComboBox.
| private void ClearChildren() |
| { |
| RelationalComboBox Child; |
| string[] ChildrenList = _Children.Split(_ChildrenDelimeter.ToCharArray()); |
| for (int i = 0; i < ChildrenList.Length; i++) |
| { |
| Child = (RelationalComboBox)this.Parent.FindControl(ChildrenList[i]); |
| Child.radComboBox.Text = " "; |
| Child.radComboBox.ClearSelection(); |
| do |
| { |
| if (Child.radComboBox.Items.Count > 0) |
| { |
| Child.radComboBox.Items[0].Remove(); |
| } |
| } while (Child.radComboBox.Items.Count > 0); |
| } |
| } |
Any ideas how I can get the other radComboBox control and clear it's items?
Thanks,
Joshua Wise
Joshua Wise
Aramark