subgrids
in onBeforeRow, I need to know what grid I am building. need grid id, or grid object
Posted November 12th, 2008 by torqueaddictI am extending the subgrids example, and in the onBeforeRow, I need to know the grid that I am building. The "this" object is a view. I was hoping from the view I could somehow access the grid but I can't find a way to.
What I really want to do is something like this:
function buildSubgrid(inRowIndex, inCell) {
...
subGrid['info'] = "data";
subGrid.render();
...
}
and, in the onBeforeRow: access data. In onBeforeRow I also tried this.getCell(0,0).grid['info'] but it seems that the cells are undefined.
As an alternative I'd be happy if I could access that view variable and set my data on it, so I can access it in onBeforeRow that way.
thanks for any help!
Dojo Forum