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

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

1 Answer 61 Views
ActionSheet
This is a migrated thread and some comments may be shown as answers.
Kate | D-Flo
Top achievements
Rank 1
Kate | D-Flo asked on 16 Apr 2014, 08:47 AM
Hello,

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 17 Apr 2014, 08:40 AM
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.

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
Kate | D-Flo
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or