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
0
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
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
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
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
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
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!