This is a migrated thread and some comments may be shown as answers.

Get Selected Item in JavaScript, not via event

2 Answers 114 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Ruud
Top achievements
Rank 1
Ruud asked on 05 Mar 2015, 08:42 AM
Hi,
Kind of stuck here (again... :().. I'm trying to find a way to get the selected list item in my mobile listview. So, not via a list view event, but in JavaScript. I cannot find documentation on this for the MobileListView. Can you please point me to the correct documentation?

I expect something like this: $("#lvwnotifications").data("kendoMobileListView").select() , but this does not work. I tried the debugger of course, but I did not find a way to get all the list view properties and methods in my local debug windows; any tips on this appreciated as it would save tons of time. Thanks in advance for your feedback!

Regards,
Ruud

2 Answers, 1 is accepted

Sort by
0
Ruud
Top achievements
Rank 1
answered on 06 Mar 2015, 01:07 PM
Found another way. Added a button to the list view item template, and then used additional data-xx attributes to pass arguments to the function called on data-click. See this article for more details: http://www.telerik.com/forums/passing-argument-on-data-click.

Still wondering if it is possible though...

Regards,
Ruud
0
Accepted
Petyo
Telerik team
answered on 06 Mar 2015, 01:22 PM
Hello Ruud,

The functionality you describe is not supported currently; the mobile listview does not have the concept/feature of selection. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView (Mobile)
Asked by
Ruud
Top achievements
Rank 1
Answers by
Ruud
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or