Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by roxana aioanei on Jul 17, 2008 06:19
open dhtmlx forum
I want to select the subgrid parent row.How can I do this?

Hello! I am using a grid with subgrids...my problem is that when selecting a row from subgrid I want to select the subgrid parent row.How can I do this?
TIA
Answer posted by Support on Jul 17, 2008 06:35
Can be done as

grid.attachEvent("onSubGridCreated",function(subgrid,master_row){
    subgrid.attachEvent("onRowSelect",function(){
       grid.selectRowById(master_row);
       return true;
    })
    return true;
});