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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ComboDropDown popup size change on the fly

Thread ID:

Created:

Updated:

Platform:

Replies:

101188 Oct 5,2011 05:21 AM UTC Oct 11,2011 10:19 AM UTC Windows Forms 4
loading
Tags: Tools
Min T
Asked On October 5, 2011 05:21 AM UTC

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.


Min T
Replied On October 9, 2011 09:21 PM UTC

Any help?


Arun A [Syncfusion]
Replied On 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


Min T
Replied On 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.


Arun A [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;