To achieve that I would suggest two approaches:
- Recommended: You can encapsulate the functions and bind them through the data attribute in the following way:
foo = (
To illustrate such approach in action, I updated your jsFiddle example
2. Not Recommended
: it is possible to hook up to the events with the bind()
method in the $(document).ready
. Please note in this case only the first view is initialized due to performance reasons. In other words, this approach will allow you to bind the events only for the first view.
In addition, if you got confused by the mobile application events - at present those events are not exposed. I apologize for the inconvenience - the problem was addressed and our documentation is updated.
I hope this helps.
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI