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

PopupContainer BeforeCloseup REASON

When you close a popup, you have to specify a reason.

How can I get that REASON in the BeforeCloseUP event of the popupContainer control?






1 Reply

AD Administrator Syncfusion Team April 9, 2008 09:06 AM UTC


Hi ERobishaw,

Thanks for using Syncfusion products.

If your intention is to remain the PopUp to be open when we click or select the control while closing the PopUp, you can do as follows.


private void dropDown_BeforeCloseup(object sender, CancelEventArgs arg)
{
if (MessageBox.Show("Close the dropdown list?", "Check",

MessageBoxButtons.YesNo)==DialogResult.No)
arg.Cancel = true;
}


Please refer the sample in the below link that illustrates the above.

http://websamples.syncfusion.com/samples/Tools.Windows/F72754/main.htm

Please provide me more details if I misunderstood your requirement.

Regards,
Asem.



Loader.
Live Chat Icon For mobile
Up arrow icon