Categories | Question details Back To List | ||
sub_row_grid questions Hi, we have a few questions relating to sub_grid_rows: 1) we have quite a few sub grids in a grid. we have attached an on double click event to them as follows: grid.attachEvent("onSubGridCreated",function(subgrid) { subgrid.attachEvent("onRowDblClicked",doubleClickSubGridCell); return true; }); we then have the function that is called and is passed the row id and cell index, but how do we actually refer to the grid inside the function that is called when the user double clicks a cell in the sub grid in order to get its data... usually we would have gridname.cells(0,0).getValue(); but we are not being passed the grid that has been clicked so dont know how to refer to it. 2) the print doesnt seem to work properly and doesnt print sub grids, is this a known bug? 3) in relation to a treegrid (***not a sub grid, just a normal tree grid): we have a column as 'tree' but also want to make it uneditable. is this possible? and if not then can you provide a work around that also doesnt conflict with grid.enableEditTabOnly(); method thanks Answer posted by dhxSupport on Mar 16, 2009 06:07 1) Inside doubleClickSubGridCell function "this" will refer to the necessary subgrid instance. 2) printView() method print only open subgrids. 3) You can use enableTreeCellEdit(0) method |