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

How to show a popup menu when selecting a row in SF List view.

Hi,

I am exploring the SF Listview control and want to implement a pop up menu when a row is selected. When trying to see what happens when a row is selected in the  Patient monitor application, it crashes with an unhandled exception.

Can this be fixed so that we can explore the sample of using the SF List view control.

I would like to implement this particular feature in my application.

Display a list view similar to the AutoFit Items sample. Image on the left and some data on the right.

When the user selects a particular row, a popup menu appears over the selected row with particular sub items and when a particular item is tapped, it navigates to another form with the parameters passed.

Please let me know how to achieve this, and is there a menu control in the Syncfusion Xamarin Forms Edition that works on both Android and iOS.

Thanks,

Rajesh.

1 Reply

DB Dinesh Babu Yadav Syncfusion Team September 4, 2017 12:34 PM UTC

Hi Rajesh, 
 
Thank you for using Syncfusion Products. 
 
Query 
Response 
Exception throws when an item is selected in SfListView 
We have checked the reported issue at our end by loading the SfListView in the PatientMonitor sample with the latest SfListView version (v15.3.0.29). But we are unable to reproduce the issue at our end and the page gets navigated when an item is selected as expected in all platforms such as Android, iOS and UWP.  
For your reference, we have attached the ensured sample at our end and you can download it from the below link. 
 
 
Could you please check with the above sample? If the issue still persists, please share the below details and if possible please modify the above sample to replicate the issue and revert us with the replication procedure which would help us to analyze the issue better and update you an appropriate solution. 
 
·       Could you please share that whether the issue replicates only in specific platform such as Android only or in others too? 
·       Could you please share the SfListView and Xamarin Forms version? We have tested in latest SfListView version(v15.3.0.29) and Xamarin Forms(v 2.3.4.247). 
·       Could you please share that whether the issue replicates in any specific devices? If yes, please share the device specifications? 
 
Support for contextual menu in SfListView 
Currently we do not have inbuilt support for the reported requirement at our end. But, we have already considered this as feature request and added it to our feature request list. The reported feature is a tentative feature and it will be available in any of our upcoming releases. We will let you know once the feature has been implemented. 
   
However, we have prepared a sample by a workaround which shows the contextual menu on holding an item (long pressed) and you can download it from the below link.   
   
  
Could you please check with the above sample? if your requirement has not met, please revert us with additional information regarding the support for Contextual Menu in SfListView which would help us to analyze the requirement better and update you an appropriate solution.  
   
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 


Loader.
Up arrow icon