function js_AfterUpdate(grid, cell){ var grid = igtbl_getGridById(grid);var cell = igtbl_getCellById(cell); var aRow = cell.getRow(); aRow = aRow.getNextRow(true); var aCell = aRow.getCell(0); aCell.activate(); }
Can i some how get index by column id for function getCell(0)?
Got it after few hours.
//Change to next row and update value
function js_AfterUpdate(grid, cell) { var grid = igtbl_getGridById(grid); var cell = igtbl_getCellById(cell); var aRow = cell.getRow();
//Update value if(cell.getValue()!=0 && cell.getValue()){ //problems with ',' var val1 = aRow.getCell((cell.Index)-2).getValue().replace(',','.'); //problems with ',' if(val1==0)val1 = aRow.getCell((cell.Index)-1).getValue().replace(',','.'); //Add new value aRow.getCell(cell.Index+1).setValue(val1/cell.getValue());} aRow = aRow.getNextRow(true); //cursor moves one to te left so right index is current index - 1 var aCell = aRow.getCell(cell.Index-1); if(aCell)aCell.activate(); }
ps. how can you delete your own post?
Yes, and on top of that if you deleted this post then you would not be helping me fix a client side problem I'm having. So, thank you for not being able to delete you post :)
wmdataojamarko said: ps. how can you delete your own post?
You can't. You are doomed to perpetual ridicule from those of us who never make mistreaks. ;-)
Or.... You could edit your post and delete everything. That would leave an even more intriguing legacy.