Ajax parameters

2 posts, 1 answers
  1. OfficeHeart
    OfficeHeart avatar
    99 posts
    Member since:
    Aug 2008

    Posted 20 Aug 2012 Link to this post

    Hi,

    We are porting our Telerik MVC project to Kendo MVC.
    How can we achieve this with Kendo?

    Clientside rebind
    var grid = $('#DaGrid').data('tGrid');
    grid.refresh(
    {
    searchfilter: search
    }
    );

    c#
    public ActionResult Select_archief(string searchfilter)
            {
    ....
    }

    Thus a rebind with filter parameter.

    Thanks,
    Martin
  2. Answer
    Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 23 Aug 2012 Link to this post

    Hello Martin,

    You should use the Grid DataSource read method to reload the data and pass an additional parameter. For example:

    grid.dataSource.read({searchfilter: "search"});
    If you wish to pass the parameters every time a request is made, you should use the Data function of the request. Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top