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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Many popup in same page

Thread ID:

Created:

Updated:

Platform:

Replies:

151147 Feb 1,2020 08:17 AM UTC Feb 5,2020 01:24 PM UTC Xamarin.Forms 3
loading
Tags: SfPopup
Emmanuel Cesaire FOKO
Asked On February 1, 2020 08:17 AM UTC

Hello I have a page with 3 buttons and I'd like each button to display a different popup ... its 3 popup defined on the same page ... How to do that ? I searched the Documentation without success.
Thanks

Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On February 3, 2020 12:58 PM UTC

Hi Emmanuel, 
 
Thank you for using Syncfusion products. 
 
We have checked the reported query “Need to show 3 different popups in a single page” from our side. We would like to let you know that you can create and show any number of popups in a page. You could initialize the number of instances required and in a button clicked action you can display popup by calling the SfPopupLayout.Show method. 
 
For your reference, we have attached the working sample and you can download it from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu kumaran.  


Emmanuel Cesaire FOKO
Replied On February 4, 2020 03:44 PM UTC

Merci pour la réponse rapide ... en fait j'aimerais le faire en XAML pas dans le code derrière ... est-ce possible? 

Karthikraja Kalaimani [Syncfusion]
Replied On February 5, 2020 01:24 PM UTC

Hi Emmanuel,

Thank you for the update.

We have prepared a sample a four requirement and in our sample we initialized multiple popup in XAML. For more details please refer to the below code example and sample.

Code Example,
 
<sfPopup:SfPopupLayout x:Name="popup1"> 
                <sfPopup:SfPopupLayout.PopupView> 
                    <sfPopup:PopupView> 
                        <sfPopup:PopupView.ContentTemplate> 
                        <DataTemplate> 
                            <Label Text="This is Popup1"></Label> 
                        </DataTemplate> 
                        </sfPopup:PopupView.ContentTemplate> 
                    </sfPopup:PopupView> 
                </sfPopup:SfPopupLayout.PopupView> 
            </sfPopup:SfPopupLayout> 
            <sfPopup:SfPopupLayout x:Name="popup2"> 
                <sfPopup:SfPopupLayout.PopupView> 
                    <sfPopup:PopupView> 
                        <sfPopup:PopupView.ContentTemplate> 
                            <DataTemplate> 
                                <Label Text="This is Popup2"></Label> 
                            </DataTemplate> 
                        </sfPopup:PopupView.ContentTemplate> 
                    </sfPopup:PopupView> 
                </sfPopup:SfPopupLayout.PopupView> 
            </sfPopup:SfPopupLayout> 
            <sfPopup:SfPopupLayout x:Name="popup3"> 
                <sfPopup:SfPopupLayout.PopupView> 
                    <sfPopup:PopupView> 
                        <sfPopup:PopupView.ContentTemplate> 
                            <DataTemplate> 
                                <Label Text="This is Popup3"></Label> 
                            </DataTemplate> 
                        </sfPopup:PopupView.ContentTemplate> 
                    </sfPopup:PopupView> 
                </sfPopup:SfPopupLayout.PopupView> 
            </sfPopup:SfPopupLayout> 

Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Popup_Demo_151137831638164.zip

Regards,
Karthik Raja


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon