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 conatins control SfListView but databinding command not working ?

Thread ID:

Created:

Updated:

Platform:

Replies:

132548 Sep 7,2017 07:59 PM UTC Sep 8,2017 11:16 AM UTC Xamarin.Forms 1
loading
Tags: SfListView
Stephen Hauck
Asked On September 7, 2017 07:59 PM UTC

I have an SfListView that contains another SfListView with a grid and I want to use an image as a button but I cannot seem to get the behavior to map with a binding.

Here is the image mapping code that does not fire the command in the view model


I even tried to map a button to the command and it's not working, the button shows the animation of being pressed but the command is not called


... using commands and binding all over the place ... no errors reported..

Here is the command code in the view model ... like dozens of other commands


Everything is public and just like dozens of other commands used the same way .....
It's almost like the SfListView is NOT clickable because it's nested for some reason ?
Am I missing something ?
Thanks in advance for ANY help you can offer.

Stephen



Dinesh Babu Yadav [Syncfusion]
Replied On September 8, 2017 11:16 AM UTC

Hi Stephen, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported issue “Command binding is not working in nested SfListView” with the latest SfListView version (v15.3.0.29) at our end by bind the image command to both HeaderTemplate and ItemTemplate of nested SfListView as like given scenario. But we could not able to reproduce the issue with our sample.  Also, we would like to let you know that for header and footer items, the binding context will be SfListView’s binding context and for list view item, underlying data will be the binding context for each items. So, if you have bind command to list view item, then command should be used in respective model class to trigger the command action. For your reference, we have prepared the sample in which command for header and nested list view item is loaded and on tapping the image, respective image command will be triggered and you can download it from the below link. 
 
 
Please check with the above sample and let us know if you are still facing any issue or require further assistance. 
 
Regards, 
Dinesh Babu Yadav 
 


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.

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

;