I am 100% sure that it is something that i am missing. I am just starting out with Kendo. But any help is appreciated.
I assumed that when i clicked the delete button in the grid that it would automatically send my request to a "destroy.cfm" file. I cannot see any action in firebug to show this.
Help a nOOb out.
Thanks alot!
I assumed that when i clicked the delete button in the grid that it would automatically send my request to a "destroy.cfm" file. I cannot see any action in firebug to show this.
Help a nOOb out.
Thanks alot!
$(document).ready(function () {
$("#grid").kendoGrid({
dataType: "json",
dataSource: {
transport: {
read: "cfcs/queries.cfm",
destroy: {
url: "/cfcs/destroy.cfm"
}
},
schema: {
data: "data",
model: {
fields: {
BADGEID: {
type: "number"
},
EMPLOYEENAME: {
type: "string"
},
UNITID: {
type: "number"
},
UNITNAME: {
type: "string"
}
}
}
}
},
editable: {
destroy: true,
update: false
},
height: 450,
filterable: true,
groupable: true,
sortable: true,
pageable: false,
columns: [{
field: "BADGEID",
title: " ",
width: 35,
template: "<
input
type
=
'checkbox'
/>"
},{
field: "BADGEID",
title: "Badge Id"
}, {
field: "EMPLOYEENAME",
title: "Employee Name"
}, {
field: "UNITID",
title: "Unit Id"
}, {
field: "UNITNAME",
title: "Unit Name"
}, {
command: "destroy",
title: " ",
width: 110 }
]
});
});