Hi.
When I finish to editcell, the cell continues marked.
I try this:
$("#grid").on("iggridupdatingeditcellended", function (event, ui) {
//do something
endGrid();
}
function endGrid(){
var esc = $.Event("keydown", { keyCode: 27 }); $("#grid").trigger(esc);
But doesn't work, I included an alert and show the alert, I can see table deactivated the same way when you use esc but immediately comes to cell activate.
What can I do?
Thanks
Hello,
When I run my sample I am able to get the cell edit ended to fire no matter if I click out, hit enter or esc. I am attaching my sample. Please run it and let me know what behavior you see. Note you will have to replace the JavaScript and CSS files as I removed those to be able to attach to the forums. I am testing with v16.1.20161.2052. Do you have an isolated sample you can provide that reproduces the issue you are seeing?
Well, the idea is:
I have a grid with 3 columns. When I edit the first column, the value in third column change, if I edit the third column, the value in first column change and other calculates in other fields out of grid are executed.
When I enter the value and press enter, values changes but the cell that I was editing continue active. I need to simulate a something like press esc but doesn´t work.
I need this, because I have another action when I'm editing and don't press enter key and I do click in other site of form or focus, then the same action of recalculated values fire.
$(document).click(function (e) {
if ($("#grid").igGridUpdating("isEditing") == true) { var grid = $("#grid"); var row = grid.igGrid("activeCell"); grid.igGridUpdating("endEdit", true);
if(row.columnKey == "column1") { calculateValue1(grid.igGrid("getCellValue",row.id,'column1'), row.id); } else if (row.columnKey == "column2") { calculateValue2(grid.igGrid("getCellValue",row.id,'column2'), row.id) } }
If I edit and press enter and cell continue active, when I do clic in other place of form, $document.click is executed and I don't need that, I need that when I edit the cell and don't press enter.
When I'm in grid edit cell, press enter and pres esc, esc works perfectly, but trigger esc in
$("#grid1").on("iggridupdatingeditcellended", function (event, ui) {
})
Doesn't work
Thank you for contacting Infragistics!
Can you please clrafiy what your issue is? Is it that the EditCellEnded event is not firing? If that is the case it appears based on the code provided you are not closing the “on” setup method, it should look something like the following:
$("#grid1").on("iggridupdatingeditcellended", function (event, ui) {alert("test");});
Also where are you performing that logic? What are you trying to achieve?
I am looking forward to hearing from you.