or
$('#div').live('pageinit', function() {
alert ('event pageinit');
},400);
<div id="mydiv"> <div id="listView" data-role="listview" data-editable="true" data-template="my-template" data-bind="source: MySource"> </div> </div><script id="my-template" type="text/x-kendo-template"> <div>${Status}</div> <div> # if (Status.toUpperCase() == "SINGLE"){# <img src="imgs/black_acs.png" alt="black_acs image" /> #}else if (Status.toUpperCase() == "MARRIED"){# <img src="imgs/blue_acs.png" alt="blue_acs image" /> #}else if (Status.toUpperCase() == "OTHER"){# <img src="imgs/red_acs.png" alt="red_acs image" /> #}# </div></script><script>$(document).ready(function () { var viewModel = kendo.observable({ MySource: new kendo.data.DataSource({ // name and status transport: { read: { type: "GET", dataType: "json", contentType: "application/json; charset=utf-8", data: function () { var jsonParameters = {}; jsonParameters.parameter = "XXX"; return jsonParameters; } } } }); kendo.bind($("#mydiv"), viewModel);});</script><script id="my-template" type="text/x-kendo-template"> <div>${Status}</div> <div> # if (Status.toUpperCase() == "SINGLE"){# <img src="imgs/black_acs.png" alt="black_acs image" /> #}else if (Status.toUpperCase() == "MARRIED"){# <img src="imgs/blue_acs.png" alt="blue_acs image" /> #}else if (Status.toUpperCase() == "OTHER"){# <img src="imgs/red_acs.png" alt="red_acs image" /> #}# </div></script><script> $(document).bind("TEMPLATE_LOADED", function (e, data) { _itemTemplate = kendo.template($("#my-template").html(), { useWithBlock: false }); _itemTemplate(data); bindMe(); });$(document).ready(function () { templateLoader.loadExtTemplate("template1.tmpl.htm"); });function bindMe(){ var viewModel = kendo.observable({ MySource: new kendo.data.DataSource({ // name and status transport: { read: { type: "GET", dataType: "json", contentType: "application/json; charset=utf-8", data: function () { var jsonParameters = {}; jsonParameters.parameter = "XXX"; return jsonParameters; } } } }); kendo.bind($("#mydiv"), viewModel); }</script><script id="my-template" type="text/x-kendo-template"> <div>fixed text</div></script>