Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
how to set focus inside a cell on a newly added row
posted

I have a grid where the users add rows by clicking the add button and then type text in the row/cell. I want to set the focus on the newly added cell/row because currently after adding the new row the user again has to click inside the new row/cell for typing his text. Is there a way to set the focus on the newly added row/cell (client side). I tried the following but it didn't worked.

 

function ug_bp_smokeAreas_Grid_AfterRowInsertHandler(gridName, rowId, index)

{

var row = igtbl_getRowById(rowId);

row.getCell(0).select();

row.getCell(0).focus();

}