Manually Triggering ListView Events

6 posts, 0 answers
  1. Ceyhun
    Ceyhun avatar
    6 posts
    Member since:
    Jul 2014

    Posted 21 Jul 2014 Link to this post

    Hello,

    We implemented a custom event on a ListView object's onClick, and we wish to trigger the native click event manually. 
    We tried using jQuery's default trigger("click") and normal javascript click functions, but with no avail. Are there no native 
    functions that we can use to trigger this native event?

    Thanks and hope to hear from you asap
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 21 Jul 2014 Link to this post

    Hello Ceyhun,

    I have tested triggering the Kendo UI ListView click event manually in the following jsBin and it seems to be working as expected. Please check it out and let me know if it helps:

    http://jsbin.com/hezipu/1/edit

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Jamie
    Jamie avatar
    2 posts
    Member since:
    Aug 2010

    Posted 01 Aug 2014 in reply to Kiril Nikolov Link to this post

    Hello,

    I want similar functionality. but trigger("click") doesn't work. I am using this in splitview. where i have to show default first selected link 
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 04 Aug 2014 Link to this post

    Hello Jamie,

    I am not really sure what is the issue that you are facing. Can you please put together a Kendo UI Dojo sample where we can reproduce it? A more detailed explanation will also be appreciated.

    Thank you in advance for your cooperation.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Vedat
    Vedat avatar
    1 posts
    Member since:
    Aug 2014

    Posted 26 Aug 2014 Link to this post

    Hello Kiril,

    Triggering the Kendo UI ListView click event manually to be working as expected. But I need to trigger an item click event in Kendo UI ListView manually. This is not triggered as expected. I want to trigger click event of a li element in Kendo UI Listview. Please check it out:

    http://jsbin.com/buzadumudapo/1/edit

    Regards,
    Vedat Kılıç



  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 27 Aug 2014 Link to this post

    Hello Vedat,

    Triggering click on a specific element of the ListView is not a trivial task to do and does not make much sense. I would suggest you to directly call the event handler with the required parameters. If you elaborate a bit more about what exactly you are trying to achieve, we can suggest you a better approach. If you want to navigate to another view, then you can just call the navigate() method of the application.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready