Kendo ui data-show not working
I am working with kendo ui in html5 and I need some kind of action to happen every time the page is rendered. It's just that there is a "data-show" option for that, but it doesn't work. The function works only the first time and no more.
<div id="div1" data-role="view" data-show="alert(999)">
// The content of the div
</div>
The warning fire only fires once. Any ideas? Thank.
+3
source to share
1 answer
Try to create a JavaScript function that will handle the show event:
<div id="div1" data-role="view" data-show="div1Show">
</div>
<script>
function div1Show() {
alert(999);
}
</script>
Here is a short demo demonstrating the same: http://jsbin.com/abaveh/1/edit
+1
source to share