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. Image for the cookie policy date

SfListView Datatemplate binding not working

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

3 Replies

JN Jayaleshwari N Syncfusion Team 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 



JE Jesus 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


JN Jayaleshwari N Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon