Hi Eren,
Thanks for contacting Syncfusion Support.
We could see your controller page is not receiving any data from the client-end and moreover the data were not returned from the server-end. Please refer to the following code example which sends the data from the server-end and receives the data from the client-end.
|
public ActionResult data(int val) {
List<Orders> dat = order.Where(or => or.EmployeeID == val).ToList();
return Json(new { result = dat });
}
<script type="text/javascript">
$(function () {
window.rowSelected = function (args) {
var employeeID = args.data.EmployeeID;
$.ajax({
url: "/Home/data",
type: "POST",
data: { val: employeeID },
success: function (data) {
$("#DetailGrid").ejGrid("dataSource", ej.DataManager({
json: data.result,
adaptor: "remoteSaveAdaptor"
}));
}
});
}
});
</script> |
We have also prepared a sample that can be downloaded from the following location.
Regards,
Seeni Sakthi Kumar S.