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

After edit, save - refresh second grid

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 14 Nov 2011, 02:56 PM
I have two grids that are part of a view.  If a user edits a row (inline) and saves their change, I am rebinding the grid content as part of the server-side update method.

What would be best practice to refresh the second grid (because two columns in it need to reflect the edited changes in the first grid) after the save is complete?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 15 Nov 2011, 11:27 AM
Hello David ,

Generally speaking you will need a javascript function subscribed to the OnDataBound event of the first Grid. The function should call the ajaxRequest method using client API of the second Grid.

I attached a sample project representing the scenario you described. I hope this helps.

All the best,
Pesho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or