We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ComboDropDown popup size change on the fly

Hi,
I'm on v6.302 c# winforms using vs2008.
I'm trying to implement a ComboDropDown with a grid hosted in the PopupControl of the ComboDropDown. When I try to resize PopupControl the new size does not show unless the dropdown is re-dropped.
Is there a way to update/redraw the new size of the PopupControl while it is shown?

Thanks.


4 Replies

MT Min T October 9, 2011 09:21 PM UTC

Any help?



AA Arun A Syncfusion Team October 10, 2011 09:07 AM UTC

Hi Min,

Thanks for your interest in Syncfusion products.

The following code snippet would help you in achieving your requirement,

this.comboDropDown1.PopupContainer.Popup += new EventHandler(this.BeforeDropDownPopup);
private void BeforeDropDownPopup(object sender, EventArgs e)
{
this.comboDropDown1.PopupControl.Size = new Size (100, 200);
}

Please let us now if you need any other details.

Regards,
Arun A



MT Min T October 10, 2011 11:08 PM UTC

Hi Arun,
Thanks for your reply. I think I may not have been clear with my question. What I would like is to be able to resize the PopupContainer / PopupControl when it is already shown and the size changes in real time by dragging its borders (just like resizing a form by dragging the borders).

Is there a way to achieve this?

Thanks.



AA Arun A Syncfusion Team October 11, 2011 10:19 AM UTC

Hi Min,

Thanks for your update.

ComboDropDown popup cannot be resized using mouse dragged during runtime but we can change the size of the popup width using DropDownWidth property.

Please let us now if you need any other details.

Regards,
Arun A


Loader.
Live Chat Icon For mobile
Up arrow icon