Hi,
I use the hierarchical grid.
I wish to do 2 different things :
- Modify the 'Modified' cell by calling the 'setCellValue' when a row is modified. It works if I call the 'setCellValue' in the 'editRowEnded'. - Validate a editing row when I clic out of the grid. Indeed, I call the 'endEdit' method when I quit the editor (indeed, I subscribed to the 'focusout' event of the editor in the 'editCellStarting') In my sample, when I call the 'endEdit' method, my cell 'Modified' is never modified.
Here is a video to show you my problem :
http://sdrv.ms/1br7Ogf
I attached a sample too.
Best regards.
Hello,
Can anyone help me please ?
Regards
Is there someone to help me please ?
Regards.
Hello Cosoluce_Stones,
Apologies for the delayed response.
In this scenario, you can pass the browser event acquired through the editCellStarting parameters, to the endEdit call in order to force the updating events to be raised:
editCellStarting: function (evt, ui) { ui.editor.off('focusout'); ui.editor.on('focusout', function (a, b, c) { console.log("In the 'focusout' of the component "); // debugger; // We call the 'endEdit' - pass the browser event in order to raise all updating events related to ending editing $(ui.owner.element).igGridUpdating("endEdit",true, evt.originalEvent); }); }
Hope this helps. Please do not hesitate to contact me if you have any questions.
Hi Petar,
Indeed, it works !
Thank you very much.