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

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.


1 Reply

DB Dinesh Babu Yadav Syncfusion Team 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. 
Dinesh Babu Yadav 

Live Chat Icon For mobile
Up arrow icon