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

RadMultiColumnComboBox editor auto resize problem

5 Answers 413 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 13 May 2009, 10:37 PM
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?

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 14 May 2009, 09:34 AM
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.
0
Kevin
Top achievements
Rank 1
answered on 14 May 2009, 03:33 PM
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.
0
Nick
Telerik team
answered on 15 May 2009, 08:57 AM
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.
0
Marius
Top achievements
Rank 1
answered on 28 Jun 2012, 02:00 PM
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! 
0
Stefan
Telerik team
answered on 03 Jul 2012, 08:51 AM
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 >>
Tags
MultiColumn ComboBox
Asked by
Kevin
Top achievements
Rank 1
Answers by
Nick
Telerik team
Kevin
Top achievements
Rank 1
Marius
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or