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?
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.
Actually, there is a "Delete" button, but it can't be used if there are any existing replies. And you can only delete your own replies. So my posts are blocking you from deleting the entire thread.
Ha!
OK. I then just try to became more like you guys and never make mistakes ;)