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

ListView Mobile Selected items

Thread ID:





130054 Apr 19,2017 03:58 AM UTC Aug 13,2018 10:26 AM UTC ASP.NET MVC 3
Tags: ListView
Asked On April 19, 2017 03:58 AM UTC

Hi, I have a doubt, how can I know which selected items are in a listview mobile, thanks for your time and support

Attachment: codelistview_b163a003.rar

Selvamani Sankarappan [Syncfusion]
Replied On April 20, 2017 09:09 AM UTC

Hi Jaime, 
Thanks for using Syncfusion products. 
You can get the selected items using our existing property checkedIndices. Refer to the following code example: 
function getItem(args) { 
            var lobj = $('#remotelistbox').ejmListView("instance"); // lobj refers to the listview of the object 
            alert("" + lobj.model.checkedIndices); 
Refer to the following sample: 
Please let us know if you need any further assistance. 
Selvamani S. 

Replied On August 10, 2018 04:47 PM UTC

how can we achieve that without using a button? just select an iteam in the list and navigate to another action in the controller like details action

Balaji M [Syncfusion]
Replied On August 13, 2018 10:26 AM UTC

Hi Jaime,  
We suggest you bind the select event in ListView component to retrieve the selected item details from it.  
Code Snippet:  
<ul data-role="ejmlistview" id="remotelistbox" data-ej-datasource="window.datasource" data-ej-fields-text="ShipCity" data-ej-fields-value="ShipCity" data-ej-enablechecklist="true" data-ej-itemscount="7"  data-ej-select="select"> 
function select(args) { 
Let me know if you have any queries. 
M. Balaji 


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

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