Copy an existing RadComboBox control in Design Mode

2 posts, 0 answers
  1. Phi
    Phi avatar
    47 posts
    Member since:
    Dec 2008

    Posted 12 Dec 2008 Link to this post

    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
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 15 Dec 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top