Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
ActionMethod that handle ServerSide Filtering
posted

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

  • 23953
    Verified Answer
    Offline posted

    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 Pavlov
    Infragistics, Inc.

    igGrid_Sample_MVC5.zip