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.

Show more then 1 popup

Thread ID:

Created:

Updated:

Platform:

Replies:

125193 Jul 28,2016 11:22 AM Aug 2,2016 01:18 AM Windows Forms 5
loading
Tags: PopupControlContainer
Alexandr S
Asked On July 28, 2016 11:22 AM

Hi, 
I want to show a few popups at once using PopupControlContainer. But looks like by default PopupControlContainer let you show only one popup at once (first popup is closed when second one is shown)  . Can it be changed?

Sugapriya Mariappan [Syncfusion]
Replied On July 29, 2016 07:21 AM

 Hi Alexandr,

Thank you for contacting Syncfusion Support.

Yes it is possible to display more than one PopupControlContainer by handling its event named BeforePopup. Please make use of below code snippet and sample for your reference.

Code Snippet [C#]

 
void popupControlContainer2_BeforeCloseUp(object sender, CancelEventArgs e)
{
if (!HidePopup)
{
e.Cancel = true;
}
}
 

Screenshot: 


Regards,
M.Sugapriya 


Alexandr S
Replied On July 29, 2016 10:09 AM

Thanks a lot, this works for me.  
And could you help with another question - How can I change position of the PopupControlContainer at the runtime? I.e I ant to move my popups.

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 1, 2016 08:36 AM

Hi Alexandr,  
   
We had prepared a sample to change the position of PopupControlContainer at runtime. You can provide desired X and Y point location using the ShowupPopup method of PopupControlContainer. The same has been demonstrated in the following sample. Please download it from the following location:  
   
   
Code Example:  
 
this.popupControlContainer1.ShowPopup(new Point(this.popupControlContainer1.Location.X+10, this.popupControlContainer1.Location.Y+10));  
   
Regards,  
Vijayalakshmi V.R.  


Alexandr S
Replied On August 1, 2016 09:28 AM

 Its working for me. Thank you for the perfect technical support!

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 2, 2016 01:18 AM

Hi Alexandr.

Thank you for your update.

Please let us know if you need any other assistance on this.

Regards,
Vijayalakshmi V.R. 


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.

;