I have a Kendogrid with filters, search calls, etc. For any action applied to the grid, such as paging, filtering, etc., the following action was called.
/// <summary> /// Returns the Manager List numbers. /// </summary> /// <param name="request">DataSourceRequest</param> /// <returns>JSON object</returns> public ActionResult GetCases([DataSourceRequest] DataSourceRequest request) { //some code }
My view also has a text box and a button. When I enter any number in a TextBox, JQuery is called and an AJAX call is made, which calls a different action method in the same controller.
Now my question is how can I get the query “[DataSourceRequest] DataSourceRequest” in this [SelectRecords] action with earlier values (the values that are set when the filter is applied).
Note: Here, in SelectRecords, I got the Null values, not the values set in Filter.
public ActionResult SelectRecords(Int32 noOfRecords, [DataSourceRequest] DataSourceRequest request) {
source share