Hi,
Can you please help on how we can edit multiple/all rows inside a grid and save all at once, maybe using checkbox selection or using some button ?
Hello Vishal,
The igGrid control has two modes when entered editing mode: "cell" and "row". As their names suggest in "cell" mode only one cell has an editor shown and in "row" mode all the cells in a single row are having their editors shown. Currently there is no way to force all visible igGrid's cells to enter editing mode and have their editors visible. Please note that even if you select the "cell" editing mode the user still has the ability to edit all igGrid cells one by one by navigating using the "Tab" and "Shift+Tab" keys.
Regarding the "save all at once" part of the requirement I believe you can just invoke the "commit" method as I wrote in my previous post inside a button handler for example.
If you require any further assistance on the matter, please let me know.
Sincerely,Radko KolevSenior Software Developer
Hi Team,
Please help if this is feasible with igGrid.
Hi Radko,
Thank you for your response.I am aware of mentioned method to programmatically update rows. My requirement is a bit different here. Let me rephrase my query- i need to make all the rows inside grid editable at once for the user and then user should be able to make whatever changes required and save all at once using some button or any other trigger. Can you please help on this.
If you need to programmatically update a lot of rows in the igGrid control you may use the "updateRow" method like this:
$('#grid').igGridUpdating("updateRow", 1, { Column1: 'Value1', Column2: "Value2" });
Also if the automatic commit is not enabled on your igGrid you may commit all your transactions at once like this:
$('#grid').igGrid("commit");
You can find more information in this topic:
https://www.igniteui.com/help/iggrid-updating
Let me know if I may be of any further assistance.