Hello,
I am following Hierarchy example to build the parent-child grid.
I have this in the view
and this in controller
but client side code will never hit this code saying orderid is null hence route doesn't match. Why is
Will someone help me?
thanks guys
william
I am following Hierarchy example to build the parent-child grid.
I have this in the view
function detailInit(e) {
$("<
div
/>").kendoGrid({
dataSource: {
transport: {
read: {
url: "../OrderDetailJson
/",
dataType: "json"
},
},
filter: { field: "orderid", operator: "eq", value: e.data.Id }
},
....
}
and this in controller
public JsonResult OrderDetailJson(int orderid){
...
}
but client side code will never hit this code saying orderid is null hence route doesn't match. Why is
filter: { field: "orderid", operator: "eq", value: e.data.Id }
doesn't work??? I thought it will work like jquery .post/json call but it doesn't.Will someone help me?
thanks guys
william