Hello,
I have an editable igGrid with two dependent columns Discount and Total. When one of them is changed the other should be changed too. I've implemented this using 'editCellEnded' trigger. This works perfectly when the user navigates inside the grid.
When the user changes, e.g Discount cell value and clicks the 'Save Changes' button, which is located outside the grid, the 'endEdit' method is called. In this case the Discount cell value is changed with the new entered value, but the Total cell value is not changed because 'editCellEnded' trigger is not fired. Is it an issue in the igGrid control? How to change the Total cell value in this case before saving? The sample is attached.
Hi Tsanna,
Thanks for you reply. I use focusout event to recalculate dependent columns. As for now I have no questions about the issue.
Regards,
Ilya
Hi Ilya,
Have you been able to resolve your issue? Do you need further help?
Tsanna
Please note that 'editCellEnded' event fires when the currently edited cell loses focus, which means that you need to click somewhere else inside the grid after finishing editing certain cell in order to raise this event up. If you click on the 'saveChanges' button while the cell is in edit mode, this won't raise the event. Moreover you're calling 'endEdit' method on this button click event, which cancels the editing operation.
Please let me know if you have any further questions.