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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

More dialogs one page

Thread ID:

Created:

Updated:

Platform:

Replies:

143439 Mar 20,2019 10:39 AM UTC Mar 25,2019 07:12 AM UTC Xamarin.Forms 3
loading
Tags: SfPopup
Tomas Turek
Asked On March 20, 2019 10:39 AM UTC

Hi,
I have two questions:

1) It is possible to have more (2 or 3) different dialogs on one page? I have a page with listview and I need to implement three buttons. First button open dialog with 'Sort settings' and second button open different dialog with 'Type of view' and next dialog same other settings. All dialogs will contain radialbuttons and dialogs will set as modal. As attached picture 1.

2) I can´t access to 'x:Name' property for elements which are contained in ContentTepmplate->DataTemplate from my code. Any idea how to reach this property from code? Attached picture 2. (Rebuild solution or delete bin and obj files not working).

I´m using XF 3.4.0.1229999 and the latest syncfusion NuGets.

Thank you

Attachment: pictures_d9d8a42c.zip

Subburaj Pandian Veluchamy [Syncfusion]
Replied On March 21, 2019 11:05 AM UTC

Hi Tomas, 
 
Thank you for contacting Syncfusion support. 
 
Query 1: Showing different Popup based on views 
Your requirement of showing different Popup content based on tapping different elements can be achieved by setting different ContentTemplate to the Popup view based on the desired views. As you mentioned, if you have three buttons when tapping the button in click event you have set the required template to the popup view. 
 
We have prepared simple sample based on your requirement, 
 
Sample link: PopupSwitchTemplate 
 
In the sample, we have maintained three buttons in the button click event we have handled different templates (Switches for Views and sorting) for each button.  
 
Query 2: Accessing DataTemplate elements which hosted in Xaml 
It is not possible to access the DataTemplate elements which hosted in Xaml. You must need to derive in code behind to access the DataTempalte elements. In the sample, we have handled the switch property which assigned in the DataTemplate.  
 
We hope this helps. Please let us know, if you need any further assistance. 
 
Regards,
Subburaj Pandian V 


Tomas Turek
Replied On March 22, 2019 03:10 PM UTC

Thank you. Your code works perfectly.

Subburaj Pandian Veluchamy [Syncfusion]
Replied On March 25, 2019 07:12 AM UTC

Hi Tomas,  
  
Thank you for the update. We are happy that the given solution meets your requirement. 
 
Please get in touch with us if you would require any further assistance. 
  
Regards,
Subburaj Pandian V  


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

;