We are using KendoGrid in our ASP.NET MVC application. We have written custom filters to allow users to filter grid based on wide-range of selection options. The grid is filtered when invoked following call from a user event:
gridData.dataSource.query({ page: pageNo, pageSize: pageSize, sort: sort, filter: filterData });
Here, gridData holds instance of the KendoGrid.
This works properly in all cases, but it is failing in one specific case where the the filter property has more than 12,25,000+ characters.
I am getting an error saying "System.StackOverflowException occurred in Kendo.Mvc.dll". While monitoring the request in developer tools, I can see the Ajax request to "CustomAction" is taking place and is having proper value in "filter" property even though it is too large string. However, it is not being accepted by the MVC action which is bound as a data source of KendoGrid. Following is the signature of the MVC action that performs filtering of data for KendoGrid -
public ActionResult CustomAction([DataSourceRequest] DataSourceRequest request)
Any help on this would be much appreciated.
Thanks