RadMultiColumnComboBox editor auto resize problem

6 posts, 0 answers
  1. Kevin
    Kevin avatar
    10 posts
    Member since:
    Oct 2008

    Posted 13 May 2009 Link to this post

    When the user resizes a form and the RadMultiColumnComboBox is stretched to a larger size, the editor does not seem to stretch with it like you would expect.  So when you click the down arrow, the editor is much smaller than the width of the control.  Is there a property I can set?
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 14 May 2009 Link to this post

    Hello Kevin,

    Thank you for contacting us. You can control the drop down height and width as you can read in this help article. There are some known issues with those two properties. I am increasing the priority of these issues as you may encounter them and I hope we will be ready with a fix for Q2 2009. Please try whether those properties work for your scenario currently.

    All the best,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Kevin
    Kevin avatar
    10 posts
    Member since:
    Oct 2008

    Posted 14 May 2009 Link to this post

    Ok, I figured that part out.  The real question is where to set that property so that the width of the drop down always matches the width of the control.  I tried using the DropDownOpened event, but that does not work as advertised either.  The documentation says that event fires before the drop down is opened, but it actually happens afterwards.
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 15 May 2009 Link to this post

    Hi Kevin,

    Events ending with ed are fired after while events ending with ing before. In this regard the help is incorrect and I fixed it. The change will become visible next week.

    I managed to find a work-around for your scenario. Please use the code below:

    void MultiColumnComboBoxElement_PopupOpening(object sender, CancelEventArgs e) 
                radMultiColumnComboBox1.MultiColumnComboBoxElement.DropDownWidth = this.radMultiColumnComboBox1.Width; 

    You can subscribe to this event in Form_Load as shown below:

    private void Form1_Load(object sender, EventArgs e) 
        radMultiColumnComboBox1.MultiColumnComboBoxElement.PopupOpening += new CancelEventHandler(MultiColumnComboBoxElement_PopupOpening); 
     

    Unfortunately the work-around works after the first opening. Please excuses for the introduced inconvenience. We will try to fix that soon.

    Best wishes,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Marius
    Marius avatar
    16 posts
    Member since:
    Oct 2011

    Posted 28 Jun 2012 Link to this post

    Hello!
    I have the same problem: i want the width of the dropdown's elements always matches the width of the control.  I don't want to use this workaround. Is there any other solution?
    Thank you! 
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 03 Jul 2012 Link to this post

    Hello Stelian,

    Thank you for writing.

    I believe that this is the default behavior of the control in our latest release - just tested it on my end. If you experience different behavior, please open a new support ticket where you can attach a sample project demonstrating it. This will allow us to investigate it and provide you with adequate support.
     
    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready