AUTHOR: Marin Bratanov
DATE POSTED: October 13, 2017
Save several batch edit grids on click of an external button and also save the other user input.
RadGrid offers a built-in Save Changes button in its command item when in Batch Edit mode. This works great for one single grid.
In some cases, however, you may have several grids on the page and so you would need to save their changes on a click of a button that is outside of the grid.
In addition, the grids may not be the only user input that must be handled by the page.
In such cases, you need to take a few things into account:
The solution is to check the grids for changes on the client and then implement the common logic in one place, and to ensure it is called once. To do that:
Below you can find attached a basic example of the approach.