Hi there,
I'm updating the grid row in javascript calling editRowEnding event with below piece of code, it works fine for first row but don't allow me to edit any other row in the grid. Please note that I don't want dataBind here and using latest release '12.2.20122.2176'
function editRowEnding(evt, ui) { if (ui.update) { var _templateID = ui.rowID; var _item = ui.values.CertItem; var _category = ui.values.Category var _values = ui.values.ItemValue; var cols = { TemplateItemID: _templateID, CertItem: _item, Category: _category, ItemValue: _values }; $("#GridTable").igGridUpdating("updateRow", _templateID, cols); $("#GridTable").igGrid("commit"); $("#GridTable").igGrid("saveChanges"); }}
It always keep isEditing = true for:
var isEditing = $("#GridTable").igGridUpdating("isEditing");
Even try to endEdit with:
$("#GridTable").igGridUpdating("endEdit",true,evt);
But no luck!! Please advise any help.
Regards,
Jasdeep
Hello Jasdeep,
Thank you for your reply.
Please note that the solution provided by Martin is an alternative approach for your particular scenario - our engineers are still looking into work item 147231 related to not being able to enter edit mode after the EditRowEnding event has been handled and cancelled once and you will be notified of any developments concerning this issue.
Thanks Martin,
This work for me.
I'm wondering if there was a solution that can achieve by programing code then why I was put on hold and a ticket created for solution.?
In editRowEnding using the igGridUpdating.updateRow API will not work as it will not create a transaction (this is a design limitation), so calling igGrid.commit and igGrid.saveChanges will have no effect, because they are counting on the transaction log.As an alternative in igGridUpdating.editRowEnding event you can use the igGridUpdating.editorForKey API in order to get the cell editor and then use the igEditor API to update its value programmatically. This way the editor value will be propagated to a transaction which you can process (commit and save) in the igGridUpdating.editRowEnded event.Attached you can find a sample demonstrating this.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi Jasdeep,
The Internal issue number for the case is 147231. The fix is implemented and it is currently in the process of being tested by our engineers. I will let you know once the build is available.
thanks
Angel
Hi Angel,
Any update on this one from development guys?