Hi,
I'm trying to use the event editCellEnded when change to other cell in the row that i'm editing, catch the event and do some stuff. But the event only raise when finish or cancel the editing of the row.
Any idea?
To inform i tried to subcribe with:
(document).delegate("#TablaParametrizacion", "iggridupdatingeditcellended", function (evt, ui) { /*Do stuff*/});
$("#TablaParametrizacion").live("iggridupdatingeditcellended", function (event, ui) { /*Do stuff*/});
The "#TablaParametrizacion" is the id of the "div" which contains the igrid table.
Hi Ricardo,
The editCell* events are used with editMode: "cell" by design and editRow* events are used in combination with editMode: "row". However the editCell* events are also fired when editMode: "row" not after each cell is edited, but before the corresponding editRow* events fire.
I guess that you're using editMode: "row" for the grid updating, that's why editCellEnded event is fired(actually the event is fired multiple times once per column) before editRowEnded event. As I already said this is by design.
When in edit mode igGridUpdating uses igEditor instances for each column. You can take advantage of the igEditor events in order to achieve what you're looking for. In order to get the editor for a column you can use the igGridUpdating.editorForKey API. Place your binding code in igGridUpdating.editRowStarted event, but be sure to do it only once.
I'm attaching a sample which demonstrates this.
Hope this helps,Martin PavlovInfragistics, Inc.
Hi!
Thanks for your answer, was useful to understand which type of throw events depends on the type of edit.
Finally I used to a combo event because it's exactly the cell that i want to observe.
Regards
Ricardo Pelaz
hi, thanks for this hint using the editors valueChanged event.
further question: why do I need to only let the event be registerd at first time call? I tried it without the firsttime condition and it also seems to work correctly.
when are the editor objects generated in iggrid? has every column it's own editor object and this object persists after the editRowStarting fired for the first time?
thanks in advance.