I need to pass various parameters back to my controller method, which I am able to do in the following ways:
Parameters From Model:
.Read(read => read.Action("CPos_Read", "Reporting", new { LocCode = "#=LocCode#" }))
Parameters From Javascript Method:
.Read(read => read.Action("CPos_Read", "Reporting").Data("GetFilters"))
function GetFilters() {
var ParamList = [];
var Param = ":";
Param = "DateStart:";
Param += $('#DateStart').val();
ParamList.push(Param);
Param = "DateEnd:";
Param += $('#DateEnd').val();
ParamList.push(Param);
return { Params: ParamList }
}
I have a requirement to pass both the LocCode parameter from my kendo grid model, and the additional parameters from the Javascript function. In other words, I need to be able to combine both of these to pass back to my controller.
Ideally, I would like to be able to pass the LocCode parameter to my Javascript method.