Can we add some parameters whe grid send a data request(such as databind, paging, sorting)?
We have some filter in the page, when the gird send a data request, we want take the latest filter values to server. Can we do this?
If can't, do you have some suggestion?
Hi Spark,
Yes, you can do that. You need to handle the igDataSource.urlParamsEncoded callback. The attached sample shows how to achieve this. If you have action method with GridDataSourceAction attribute, paging and sorting will be handled automatically by Infragistics.Web.Mvc.dll, so you need only to implement the filtering by yourself.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
When I run this sample, the urlParamsEncoded event never fires. Is there something I'm missing?
Thanks very much, and i have find out another solution which can change DataSourceUrl.