This question is locked. New answers and comments are not allowed.
Hi Telerik community,
I have two grids on one page.
Upon pressing a "delete" button on one of the grids, both grids need to update (records from both will be removed).
I can think of two ways to go about this:
1) Javascript that gets the other grid to do a refresh after the first one finishes.
2) Update the whole page. (In the context of our application, this is fine and not overkill at all).
I tried option 2 by causing the "delete" GridAction method in the controller to return a RedirectToAction instead of a GridModel. This causes an "Error! The requested URL did not return JSON." dialog to appear, and fails to refresh the page. Is there a way to make this work?
On the other hand, while options 2 seems simpler, do you think option 1 would end up being easier to implement?
Thank you,
Luke
I have two grids on one page.
Upon pressing a "delete" button on one of the grids, both grids need to update (records from both will be removed).
I can think of two ways to go about this:
1) Javascript that gets the other grid to do a refresh after the first one finishes.
2) Update the whole page. (In the context of our application, this is fine and not overkill at all).
I tried option 2 by causing the "delete" GridAction method in the controller to return a RedirectToAction instead of a GridModel. This causes an "Error! The requested URL did not return JSON." dialog to appear, and fails to refresh the page. Is there a way to make this work?
On the other hand, while options 2 seems simpler, do you think option 1 would end up being easier to implement?
Thank you,
Luke