PDA

View Full Version : [FIXED]'groupchange' event supplies grid's view not grid



GangleTron
5 Nov 2010, 3:14 PM
Hi,
I set a listener to the 'groupchange' event. The documentation says that it supplies the grid and the groupId as args for this. I don't seem to be getting the actual grid object back though. It looks like I am getting the view back.



...
grid.on({

groupchange:function(grid,group){
var s = grid.getStore();
...
}
});


This is where I get the error that grid.getStore is not a function. Is there something incorrect about this or is the documentation incorrect?

Thanks.

evant
5 Nov 2010, 4:41 PM
It's a bug, the method should pass the grid, not the view. I'll fix it up for the next release.