Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ritz on Jun 22, 2009 02:54
open dhtmlx forum
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);
}

Answer posted by dhxSupport on Jun 22, 2009 03:28
Please check example at the attachment. 
Attachments (1)