Hi,
I am trying to load a kendo grid using Json Data coming from a controller. I would like to know how I can make my viewmodel grid observable. Please find my view model code below:
I am trying to load a kendo grid using Json Data coming from a controller. I would like to know how I can make my viewmodel grid observable. Please find my view model code below:
function
initControls() {
$(
"#ChargesGrid").kendoGrid({
dataSource: {
type:
"json",
transport: {
read: {
url:
"Charge/GetCharges",
dataType:
"json",
type:
"POST"
}
},
pageSize: 5
},
groupable:
false,
sortable:
true,
pageable: {
refresh:
false,
pageSizes:
true
},
columns: [
{ field:
"Description", title: resourcesSet.str_Desc, width: "150px" },
{ field:
"Amount_Due", title: resourcesSet.str_AmtDue, width: "50px" },
{ field:
"Date", title: resourcesSet.str_Date, width: "50px" },
{ field:
"Title", title: resourcesSet.str_Title, width: "150px" },
{ command: { text:
"Edit", click: showForm }, title: " ", width: "80px"}]
});
}
This is my html rendering the grid
<table id="ChargesGrid"></table>