Dynamically set width of RadComboBox dropdown

Thread is closed for posting
2 posts, 1 answers
  1. Gary C
    Gary C avatar
    8 posts
    Member since:
    Nov 2008

    Posted 17 Nov 2009 Link to this post

    I see this thread for hooking up to the DropDownOpened event and changing the size of the drop down window.


    This is working for me, but one side effect of this change is the drop down first shows as the 'default' size then adjusts to the size it was changed to in the Event handler.

    Is there anyway to avoid that flash using this technique or do I need to roll through my strings and set the DropDownWidth of the RadComboBox when I assign the DataSource to avoid the flash?


  2. Answer
    Deyan avatar
    2147 posts

    Posted 19 Nov 2009 Link to this post

    Hi Gary C,

    Thanks for contacting us.

    In the Q3 2009 release of RadControls for WinForms we have introduces some improvements in the drop-down mechanism of the RadComboBox control which also addressed some issues.

    In your case my advice would be to either use the new DropDownOpening event or directly set the DropDownWidth property when initializing the RadComboBox control.

    I hope this is helpful. You can write back anytime you need further assistance.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top