Hi..i am using ultrawebgrid.When i am pressing enter key after edditing a cell the curser moves to right i mean to next column.I want the curser to move down in the same column but to the next row.
Thanks
This could be possible by using our client side object model CSOM and the AfterExitEditMod client side event handler. Example:
<ClientSideEvents BeforeExitEditModeHandler="AfterExitEditMode" /> <script type="text/javascript"> function AfterExitEditMode(gridID, cellID) { //debugger; var grid = igtbl_getGridById(gridID); var cell = igtbl_getCellById(cellID); var cellIndex = cell.Index; var rowIndex = cell.Row.getIndex(); if (cellIndex > 0) cellIndex--; var newCellID = gridID + "_rc_" + (rowIndex + 1) + "_" + cellIndex; var newCell = igtbl_getCellById(newCellID); newCell.activate() } </script>
Thanks alot rumen..the code worked nicely..
but when curser came to last row it didnt worked properly..
so i added a null check
newCell.activate()
it worked fine but cursor is now going to last cell of next column.how can i take my cursor to first cell of next column