Add New Row In Grid

Hi Team,

I have added the below line

grid.selectRowById(newId);

after adding row to have the focus on new row, but the problem i am facing is, it is no doubt selecting the new row but it again goes to previos row immediately.



The sample is as below:



function doAddRow(){

var newId = (new Date()).valueOf();

grid.addRow(newId,“text1,text2”,1);

grid.selectRowById(newId);

}



Please check example at the attachment.
sample_add.zip (78.8 KB)