ComboDropDown closing issue

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.

1 Reply

GR Golda Rebecal Syncfusion Team April 18, 2007 01:23 PM UTC

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

Loader.
Up arrow icon