Get Selected Item in JavaScript, not via event

3 posts, 1 answers
  1. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 05 Mar 2015 Link to this post

    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. Ruud
    Ruud avatar
    51 posts
    Member since:
    Oct 2012

    Posted 06 Mar 2015 Link to this post

    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
  3. Kendo UI is VS 2017 Ready
  4. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 06 Mar 2015 Link to this post

    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!
     
Back to Top