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

Popup in ListView dynamic PopupView

Thread ID:

Created:

Updated:

Platform:

Replies:

149564 Nov 30,2019 10:35 AM UTC Dec 4,2019 02:27 PM UTC Xamarin.Forms 3
loading
Tags: SfPopup
Guy
Asked On November 30, 2019 10:35 AM UTC

Hi,

How can I change the template depending on the model it is being bound to?

For example can I use a DataTemplateSelector to choose a template depending on which item in the list view is selected?

Guy

Balasubramani Sundaram [Syncfusion]
Replied On December 2, 2019 02:10 PM UTC

Hi Guy,  
 
Thank you for contacting Syncfusion support. 
 
Based on your query we suspect that your requirement to use the DataTemplateSelector inside the PopupView.ContentTemplate, but currently we not having support for the same in SfPopupLayout or whether your requirement to show the different content based on tapping the items in view. We need lit bit clear details regarding your requirement please provide details with screenshots it will help us do analyze and provide the solution earlier. 
 
Regards,  
Balasubramani Sundaram.   


Guy
Replied On December 3, 2019 09:16 AM UTC

Hi,

You are correct, I have a list of items that all share a base class.

Each list item is a class inheriting from the base class and they have their own specific properties. I would like to use SfPopup to display these properties for editing when the list item is tapped.

I don't really have any screen shots as I haven't been able to do this with SfPopupLayout.

Kind Regards

Guy

Balasubramani Sundaram [Syncfusion]
Replied On December 4, 2019 02:27 PM UTC

Hi Guy,  
 
Thanks for the update.     
 
Your requirement of changing the tapped item value in the popup view can be achieved by using the SfPopupLayout “On Go” feature. Based on your requirement we have prepared a sample.

Please refer the below sample and UG Link,  
 
 
 
 
We hope this helps. Please let us know, if you need any further assistance. 
 
Regards,
Balasubramani Sundaram.
 


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