This is a migrated thread and some comments may be shown as answers.

Copy an existing RadComboBox control in Design Mode

1 Answer 69 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phi
Top achievements
Rank 1
Phi asked on 12 Dec 2008, 10:44 PM
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

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 15 Dec 2008, 10:47 AM
Hello Phi,

Thank you for your feedback. I have update your Telerik points for reporting the issue. It is logged in our ToDo list and will be addressed in one of our future releases.

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Phi
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or