This is a migrated thread and some comments may be shown as answers.

how to refresh grid.

4 Answers 897 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 25 May 2018, 03:20 PM

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

4 Answers, 1 is accepted

Sort by
0
Vincent
Top achievements
Rank 1
answered on 26 May 2018, 03:04 AM

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();

 

0
Viktor Tachev
Telerik team
answered on 29 May 2018, 12:04 PM
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.
0
Laura
Top achievements
Rank 1
Veteran
answered on 29 Oct 2020, 06:09 PM
Where do I insert this code?
0
Viktor Tachev
Telerik team
answered on 03 Nov 2020, 11:54 AM

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/.

Tags
Grid
Asked by
Vincent
Top achievements
Rank 1
Answers by
Vincent
Top achievements
Rank 1
Viktor Tachev
Telerik team
Laura
Top achievements
Rank 1
Veteran
Share this question
or