Know if Cancel

6 posts, 0 answers
  1. Eirik H
    Eirik H avatar
    36 posts
    Member since:
    Mar 2010

    Posted 10 Feb 2014 Link to this post

    Hi, can I somehow figure out (in the close event or similiar) that cancel was clicked or that the actionsheet was closed without anything being selected? Or is the best approach to just set a variable somethingClicked = false before opening the sheet that I set to true in my data-action events and check for true/false in the close event?
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 11 Feb 2014 Link to this post

    Hello Erik,

    The best way to handle this is using the data-action attribute. The close event, does not have the selection made in its event argument, that you can use.

    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. Eirik H
    Eirik H avatar
    36 posts
    Member since:
    Mar 2010

    Posted 24 Feb 2014 in reply to Kiril Nikolov Link to this post

    I've noticed that the close event is not called if the user clicks outside the actionsheet to close it, is this to be expected and how would I then know that the actionsheet was closed?
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 24 Feb 2014 Link to this post

    Hi Erik,

    This is by design.

    We have added this as a future feature implementation, so expect it to be included with one of the next official releases of the product.

    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. Eirik H
    Eirik H avatar
    36 posts
    Member since:
    Mar 2010

    Posted 24 Feb 2014 in reply to Kiril Nikolov Link to this post

    So currently there is no way to know if the actionsheet was closed this way?
  7. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 25 Feb 2014 Link to this post

    Hi Eirik,

    I am afraid that the close event does not fire when the user clicks outside of the Actionsheet. We have added this as a feature request, so it will be implemented in the near future, but at the moment it is not available.

    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