I have a KendoGrid setup with the following:
var gridDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/api/Group/Members",
dataType: "json",
contentType: "application/json; charset=utf-8"
},
destroy: {
url: "/api/Group/DeleteMember",
dataType: "json",
contentType: "application/json; charset=utf-8"
}
},
schema: {
model: {
id: "entityId",
fields: {
iconURL: { type: "string" },
entityName: { type: "string", editable: false },
entityId: { type: "string" }
} // End of fields
} // End of model
}
});
When I click 'delete' on a grid item, I see the following call made:
DeleteMember?entityId=myId&entityName=name&iconURL=icon%2F%3Fid%3D5894%26s%3D16
Is there a way to add another parameter to the delete call (a parameter that is not a member of the dataSource)?
var gridDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/api/Group/Members",
dataType: "json",
contentType: "application/json; charset=utf-8"
},
destroy: {
url: "/api/Group/DeleteMember",
dataType: "json",
contentType: "application/json; charset=utf-8"
}
},
schema: {
model: {
id: "entityId",
fields: {
iconURL: { type: "string" },
entityName: { type: "string", editable: false },
entityId: { type: "string" }
} // End of fields
} // End of model
}
});
When I click 'delete' on a grid item, I see the following call made:
DeleteMember?entityId=myId&entityName=name&iconURL=icon%2F%3Fid%3D5894%26s%3D16
Is there a way to add another parameter to the delete call (a parameter that is not a member of the dataSource)?