I have following piece of code:
public ActionResult ReadEmployee([DataSourceRequest]DataSourceRequest request)
{
return Json(GetEmployees().ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
}
Which I pretty much copied and pasted from Kendo Grid Website with some assumptions like I will have to make Ajax Get request from my View to be able to call this method. However, it turned out that the default behavior of the grid is actually Post every time it comes back to the controller and it works !!
This is really confusing to me because I really thought I will see some error because of
JsonRequestBehavior.AllowGet
But it is serving the request. Am I missing anything here?