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 :)
Right :) One of the benefits of having a great community, people helping each other.
Other than that we do have a very active Web Team taking care of our community site, so if you have any suggestions you can always drop them a line here:
http://forums.infragistics.com/forums/67.aspx