function ShowDiagnostics() {
diagnosticDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/DiagnosticBuilder/GetDiagnosticJSON",
dataType: "json",
}
},
pageSize: 10
});
var columns = [
{ title: "DiagnosticBuilderID", field: "DiagnosticBuilderID", hidden: true, type: "number", filterable: false },
{ title: "Template Name", field: "TemplateName", hidden: false, type: "string", filterable: false },
{ title: "Target", field: "Target", hidden: false, type: "string", filterable: false },
{ title: "No. of Questions", field: "NumberOfQuestions", hidden: false, type: "number", filterable: false },
{ title: "Action", field: "", hidden: false, type: "string", filterable: false }
];
diagnosticGrid = $("#tblDiagnostics").kendoGridAcademy({
columns: columns,
dataSource: diagnosticDataSource,
rowTemplate: kendo.template($("#diagnosticRowTemplate").html()),
filterable: true,
pageable: true,
});
$(diagnosticGrid).refresh();
}
diagnosticDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/DiagnosticBuilder/GetDiagnosticJSON",
dataType: "json",
}
},
pageSize: 10
});
var columns = [
{ title: "DiagnosticBuilderID", field: "DiagnosticBuilderID", hidden: true, type: "number", filterable: false },
{ title: "Template Name", field: "TemplateName", hidden: false, type: "string", filterable: false },
{ title: "Target", field: "Target", hidden: false, type: "string", filterable: false },
{ title: "No. of Questions", field: "NumberOfQuestions", hidden: false, type: "number", filterable: false },
{ title: "Action", field: "", hidden: false, type: "string", filterable: false }
];
diagnosticGrid = $("#tblDiagnostics").kendoGridAcademy({
columns: columns,
dataSource: diagnosticDataSource,
rowTemplate: kendo.template($("#diagnosticRowTemplate").html()),
filterable: true,
pageable: true,
});
$(diagnosticGrid).refresh();
}