Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by szymon siewior on Jun 25, 2009 11:03
open dhtmlx forum
dhtmlxGridObject with sub_row_ajax

I have:

mygrid = new dhtmlXGridObject('orders_grid');
mygrid.setSkin("dhx_blue");
mygrid.setImagePath("imgs/");
mygrid.attachEvent("onRowSelect",rowSelect);
mygrid.init();

function rowSelect (id) {
     if (mygrid.cells(id,0).open){ //check that subrow exist
     if (mygrid.getRowById(id)._expanded)
     mygrid.cells(id,0).close()
     else
     mygrid.cells(id,0).open()
     }
     return true;
}

Now I added edit field on this grid and when I double click on the cell it causes the row to open and close. Is there a way to block the row opening when you double click on a cell to edit?

Thank you
Answer posted by dhxSupport on Jun 26, 2009 04:40