Hi,
I am trying to do a MVC project, that uses Infragistics.Web.Mvc. I use this example: http://igniteui.com/grid/aspnet-mvc-helper, but did not find in documentation ActionMethod to serve remote Filtering.
Can you give me an example of how it should look ActionMethod to serve remote Filtering?
Thanks in advance
Hello Bilyana,
We provider GridDataSourceAction attribute which when decorated to a normal MVC action method will automatically do the filtering for you.
Here is an example code:
[GridDataSourceAction]
public ActionResult GetData()
{
return View(Product.GetProductData().AsQueryable());
}
Note that you just need to provide your data as an IQueryable instance.I'm also attaching a sample for your reference.
Let me know if you have further questions regarding this subject.
Best regards,Martin PavlovInfragistics, Inc.