Refreshing 2 grids with a single update

0 Answers 52 Views
Grid
James
Top achievements
Rank 1
James asked on 18 May 2023, 06:49 PM

I have 2 grids on a single page...the upper grid does not have an update capability, but the bottom grid does via a pop-up window. When we update the pop-up window we are able to refresh the bottom grid via an Ajax call, but the top grid is not being updated unless we do a full refresh of the page. 

We are using the data-ajaxurl="@Url.Action("ACTION""CONTROLLER")". I need to perform another ajax call, how can I do this?

 

Georgi Denchev
Telerik team
commented on 23 May 2023, 08:27 AM

Hi, James,

Assuming that both Grids are configured for remote binding, you should be able to simply call the dataSource.read() method on the 'top' Grid in order to force it to re-fetch the data.

let topGrid = $("#top-grid").data("kendoGrid");

// Programmatically refresh the Grid
topGrid.dataSource.read();

Best Regards,

Georgi

No answers yet. Maybe you can help?

Tags
Grid
Asked by
James
Top achievements
Rank 1
Share this question
or