how to refresh grid.

5 posts, 0 answers
  1. Vincent
    Vincent avatar
    56 posts
    Member since:
    Dec 2013

    Posted 25 May 2018 Link to this post

    I put a button, call the post method to change data. I want to refresh the grid to show the data. Please help.

  2. Vincent
    Vincent avatar
    56 posts
    Member since:
    Dec 2013

    Posted 25 May 2018 Link to this post

    I find the solution in:

    https://docs.telerik.com/aspnet-mvc/helpers/grid/faq#how-do-i-send-values-to-my-action-method-when-binding-the-grid?

     

    var grid = $("#DgDict").data("kendoGrid");
            grid.dataSource.read();

     

  3. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2499 posts

    Posted 29 May 2018 Link to this post

    Hi Vincent,

    Indeed this is the approach when you would like to send additional data to the Read action.

    Another option is to pass the optional parameters to the client-side read() method. Check out the article below that outlines the approach:



    Regards,
    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. Laura
    Laura avatar
    5 posts
    Member since:
    Jan 2020

    Posted 29 Oct 2020 in reply to Vincent Link to this post

    Where do I insert this code?
  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2499 posts

    Posted 03 Nov 2020 Link to this post

    Hello Laura,

     

    For passing additional parameters to the Read action you can also use the Data() property. Check out the article below that describes the approach:

    https://docs.telerik.com/aspnet-mvc/html-helpers/data-management/grid/faq#how-can-i-send-values-to-my-action-method-when-binding-the-grid

     

    Regards,
    Viktor Tachev
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top