or
<
script
id
=
"template"
type
=
"text/x-kendo-template"
>
<
div
id
=
"content"
>
<
div
id
=
"RepairNum"
>
Repair:#= RepairNum #
Customer:#= CustomerName #
</
div
>
</
div
>
</
script
>
<
script
>
function Repair(repairNum,customerName) {
this.RepairNum = repairNum;
this.CustomerName = customerName;
}
var repairs = new Array();
repairs.push(new Repair("111111","Test1"));
repairs.push(new Repair("222222","Test2"));
repairs.push(new Repair("333333","Test3"));
$(document).ready(function() {
var template = kendo.template($("#template").html());
$("#main").html(kendo.render(template, repairs));
$("#addButton").click(function(){
//Attempt to get the customer name
var repairNum = $("#repairnum").val();
$.get('/app/json.mx', {RepairNum : repairNum},
function(data)
{
repairs.push(new Repair(repairNum,data));
$("#main").html(kendo.render(template, repairs));
});
$("#repairnum").val("");
$("#repairnum").focus();
});
});
</
script
>
$("#grid").kendoGrid({
columns: [
"Id",
"HostName",
"BaseUri",
{ field: null,command: "destroy"}
],
editable: true,
remove: function(row) {alert("removed");}
});
$("#grid").kendoGrid({
remove: function(e) {
// handle event
});
have not been working for me$("#grid").data("kendoGrid").dataSource.data(message).read();
<
div
id
=
"wnd1"
>
<
div
>Click me!</
div
>
<
script
type
=
"text/javascript"
>alert('executed 1');</
script
>
</
div
>
<
script
type
=
"text/javascript"
>
(function ($) {
$("#wnd1").kendoWindow({
height: "500px",
width: "400px",
modal: true,
draggable: true,
resizable: false,
visible: false
});
})(jQuery);
</
script
>
$("#mydiv").kendoGrid( { dataSource: myJsonObjects })
Invalid template: '<
tr
><
td
>#=Account
Name"</
td
><
td
>#=This Is A Column That Is Easy To
Read</
td
></
tr
>'enerated code:'var
o,e=kendo.htmlEncode;with(data){o='<
tr
><
td
>'+(Account Name)
+'</
td
><
td
>' + (This Is A Column That Is Easy To Read) +
'</
td
></
tr
>';>return o;'