Is there any way of removing/adding data-bind events dynamically to HTML elements.
Thanks,
Velu
2 Answers, 1 is accepted
0
Tsvetina
Telerik team
answered on 07 Jun 2016, 09:00 AM
Hello Velu,
You can learn more about attaching event handlers dynamically here: Kendo UI Widget Events
As the article states, event handlers, which are attached during widget initialization, will be executed every time the event is fired (applied to declarative events assignment, too). If you need the handler to be executed only once, then attach it after the widget initialization with the one method:
var listview = $("#listView").data("kendoMobileListView");
// attach an event handler that will be executed only the first time the event is fired