I am defining the code as below, the url fires but i dont get a message in the console for the success event? What did I do wrong?
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "cfcs/loadCSR.cfm",
cache: false
},
destroy: {
url: "cfcs/deleteCSR.cfm",
cache: false,
type: "POST",
success: function(result){
console.log("lol");
}
}
},
batch: true,
pageSize: 30,
schema: {
data: "data",
model: {
id: "BADGEID",
fields: {
BADGEID: {
type: "number"
},
EMPLOYEENAME: {
type: "string"
},
UNITID: {
type: "number"
},
UNITNAME: {
type: "string"
}
}
}
}
});