Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kunal on Jan 10, 2009 04:30
open dhtmlx forum
setting tab order for Dhtmlx grid column

Hi,

I have used Dhtmlx Grid in my code. Here ,I added Add row button on each row of grid
On click of add row button the new row should be added and the focus should be set on the first column of the new row.
So , What is the dhtmlx api to set the tab order for rows in grid?

-
Kunal
Answer posted by dhxSupport on Jan 10, 2009 06:33
Use the following function:
function addRow(){
            var newId = mygrid.uid();
            mygrid.addRow(newId,"some");
            mygrid.selectCell(mygrid.getRowIndex(newId),0,false,false,true);
}