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

SfListView Datatemplate binding not working

Thread ID:

Created:

Updated:

Platform:

Replies:

140932 Nov 14,2018 10:16 PM UTC Nov 19,2018 05:16 AM UTC Xamarin.Forms 3
loading
Tags: SfListView
Jesus
Asked On November 14, 2018 10:16 PM UTC

I'll upload the complete solution.

i have created a new project with visual studio and Sync fusion template selector, selected .net 4.7.1 and in the poject properties the target framework is .net standard 2.0.

i have checked  the sfListView sample and changed it to work with stacklayout instead of the heavy nested grids that  was there.

the sample that i followed was the accordion one. (but without the behavior).

the ItemsSource property is binded, i have a collection of 3 objects and sfListView show 3 objects, but  empty.

project attached


Attachment: Transportes_West_63db0cec.rar

Jayaleshwari N [Syncfusion]
Replied On November 15, 2018 11:27 AM UTC

Hi Jesus 
 
Thanks for Contacting Syncfusion Support. 

We have checked the reported query “SfListView DataTemplate binding not working” from our side. Unfortunately the reported issue does not replicate at our end. We have prepared the sample based on the provided information by using accordion sample with stacklayout instead of grid without behavior which renders the data properly.
 
 
We have attached the tested sample for your reference and you can download the same from the following location. 
 
Could you please check with the above sample whether the reported issue reproduced on our sample also. If not, we would request you to modify the sample or could you please share the following details which would be better for us to provide appropriate solution. 
 
  • XAML and cs page code snippet used related to SflistView in your application.
  • .Net standard project or creating the project in .Net framework.
  • Xamarin forms version used in your application.
  • Share the extractable files.
 
Attached rar shows below error when try to extract. 
 
 
 
 
Regards, 
Jayaleshwari N 


Jesus
Replied On November 16, 2018 06:24 PM UTC

Update:

My mistake, the frame was not enclosing the stacklayout, so it was painted on top of the data rendering white rectangles. Sorry and keep going, your controls are great

Jayaleshwari N [Syncfusion]
Replied On November 19, 2018 05:16 AM UTC

Hi Jesus, 
 
Thanks for the update. Please get in touch if you would require further assistance. 
 
Regards, 
Jayaleshwari N 


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

or the page will be automatically redirected to 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

;