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

Dynamically set width of RadComboBox dropdown

1 Answer 215 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.
Gary C
Top achievements
Rank 1
Gary C asked on 17 Nov 2009, 07:22 PM
I see this thread for hooking up to the DropDownOpened event and changing the size of the drop down window.

http://www.telerik.com/community/forums/winforms/combobox/dropdownwidth-and-tooltip.aspx

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?

Thanks,

-Gary

1 Answer, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 19 Nov 2009, 12:43 PM
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,
Deyan
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Gary C
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or