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

Know if Cancel

5 Answers 30 Views
ActionSheet
This is a migrated thread and some comments may be shown as answers.
Eirik H
Top achievements
Rank 2
Eirik H asked on 10 Feb 2014, 12:46 PM
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?

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 11 Feb 2014, 08:14 AM
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!
0
Eirik H
Top achievements
Rank 2
answered on 24 Feb 2014, 08:15 AM
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?
0
Kiril Nikolov
Telerik team
answered on 24 Feb 2014, 09:37 AM
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!
0
Eirik H
Top achievements
Rank 2
answered on 24 Feb 2014, 09:44 AM
So currently there is no way to know if the actionsheet was closed this way?
0
Kiril Nikolov
Telerik team
answered on 25 Feb 2014, 09:36 AM
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!
Tags
ActionSheet
Asked by
Eirik H
Top achievements
Rank 2
Answers by
Kiril Nikolov
Telerik team
Eirik H
Top achievements
Rank 2
Share this question
or