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.

ComboDropDown closing issue

Thread ID:

Created:

Updated:

Platform:

Replies:

59574 Apr 17,2007 01:34 PM Apr 18,2007 09:23 AM Windows Forms 1
loading
Tags: Tools
Michael Sabin
Asked On April 17, 2007 01:34 PM

Hello,

I am having a problem using the ComboDropDown. I have created a UserControl to act as the DropDown for the combo. This dropdown contains a grid in it. The grid contains combobox cells. Whenever I click on one of the combobox cells, the ComboDropDown's dropdown closes. I need to prevent this.

I have tried to implement the dropdown in the following way:
1. I created the CustomPopupControlContainer mentioned in the knowledge base.
2. I added my UserControl to the CustomPopupContainerControl and set its Dock to Fill

One note about the grid. The grid is added in another UserControl. So my dropdown has a UserControl, that contains a UserControl.

Golda Rebecal [Syncfusion]
Replied On April 18, 2007 09:23 AM

Hi Michael,

You can use the BeforeCloseUp event of the PopupContainer to prevent the popup from closing when ComboBox cell is clicked.

//To prevent popup from closing

private void PopupContainer_BeforeCloseUp(object sender, CancelEventArgs e
{
e.Cancel = true;
}

I have attached a sample that illustrates the same. Please have a look at it and let me know if this helps you.

Thanks for your interest in Syncfusion products.

http://websamples.syncfusion.com/samples/Tools.Windows/I33398/Main.htm


Best regards,
Golda

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.

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.

;