open event doesn't fire when using Actionsheet in a web app

2 posts, 1 answers
  1. Kate | D-Flo
    Kate | D-Flo avatar
    24 posts
    Member since:
    Jun 2013

    Posted 16 Apr 2014 Link to this post


    I was really pleased to see the actionsheet available for the web apps as of the latest release.

    In my scenario I need to catch the Open event (when clicking on the table row) so that I can hide/show certain options depending on what row was clicked. However adding data-open="onOpen" to the UL doesn't call that function. This method available in the API docs. Is this a bug? I understand that this may be due to this being designed for a mobile app, but we are using Web solution and would benefit from this method.

    How would you recommend I solve this problem?

    Best regards.
  2. Answer
    Kiril Nikolov
    Kiril Nikolov avatar
    2598 posts

    Posted 17 Apr 2014 Link to this post

    Hello Kate,

    In general when an action is called programmatically an event is not fired. This is because the developer is aware that the action will be called, so no event is fired. The Kendo UI ActionSheet is a widget that can only be opened programmatically and this is why no event is fired. 

    In your case you can execute your code inside the method that you use to open the ActionSheet as it will have the same effect as using an event.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top