Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Dynamically added buttons not recognized

$
0
0

When one of my views is loaded, I make an AJAX call with data-init and then dynamically create div elements with some <span>text</span> inside. The divs have data-role="button" and data-click="myFunction". When I test the template on another page (not created dynamically) everything works great. But when dynamically added, the buttons are not recognized as buttons and myFunction doesn't fire.

Note, I am not using kendo templating to add the divs, I am using .append('with my html in here').

How can I dynamically add button and still have them recognized?

Thanks.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>