This question is locked. New answers and comments are not allowed.
Just want to share my 2 cents on this one.
When I copied an existing RadComboBox control that already has a few RadComboBoxItem controls binded from an existing TabPage to a new TabPage, in the *.Designer.cs file, all the existing RadComboBoxItem controls in the source got copied to the new control as well. This leads to both RadComboBox controls bindind the same set of RadComboBoxItem controls. If in the design mode, I clicked on the Items property of the copied RadComboBox control, the original RadComboBox control would loose its existing Items!
For example: The code section below would be copied to the new control as well
this.radComboBoxTheme.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.radComboBoxItemNone,
this.radComboBoxItemAqua,
this.radComboBoxItemDesert,
this.radComboBoxItemOffice2007Black,
this.radComboBoxItemOffice2007Silver,
this.radComboBoxItemTelerik,
this.radComboBoxItemVista});
this.radComboBox1.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.radComboBoxItemNone,
this.radComboBoxItemAqua,
this.radComboBoxItemDesert,
this.radComboBoxItemOffice2007Black,
this.radComboBoxItemOffice2007Silver,
this.radComboBoxItemTelerik,
this.radComboBoxItemVista});
I think it should not copy this binding data. Ideally, it should behave like VS in that it would create copies of the RadComboBoxItem controls as well.
I don't think this "problem" is limited to just the RadComboBox. I think this is a design issue so it probably effect other controls as well.
Phi Nguyen
When I copied an existing RadComboBox control that already has a few RadComboBoxItem controls binded from an existing TabPage to a new TabPage, in the *.Designer.cs file, all the existing RadComboBoxItem controls in the source got copied to the new control as well. This leads to both RadComboBox controls bindind the same set of RadComboBoxItem controls. If in the design mode, I clicked on the Items property of the copied RadComboBox control, the original RadComboBox control would loose its existing Items!
For example: The code section below would be copied to the new control as well
this.radComboBoxTheme.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.radComboBoxItemNone,
this.radComboBoxItemAqua,
this.radComboBoxItemDesert,
this.radComboBoxItemOffice2007Black,
this.radComboBoxItemOffice2007Silver,
this.radComboBoxItemTelerik,
this.radComboBoxItemVista});
this.radComboBox1.Items.AddRange(new Telerik.WinControls.RadItem[] {
this.radComboBoxItemNone,
this.radComboBoxItemAqua,
this.radComboBoxItemDesert,
this.radComboBoxItemOffice2007Black,
this.radComboBoxItemOffice2007Silver,
this.radComboBoxItemTelerik,
this.radComboBoxItemVista});
I think it should not copy this binding data. Ideally, it should behave like VS in that it would create copies of the RadComboBoxItem controls as well.
I don't think this "problem" is limited to just the RadComboBox. I think this is a design issue so it probably effect other controls as well.
Phi Nguyen