Apr 07, 2009, 4:39 PM
SelectionModel vs Listeners
Hello,
just wanted to report a simple bug. When using a grid, the Listener embedded within a SelectionModel->CellSelectionModel->Listeners is missing the 4th param on the returned event. See example:
Grid...
[object Object],0,7,undefined
Meanwhile, if you don't embed the listener in a selectionmodel and just use it on the grid.
[object Object],0,7,[object Object]
just wanted to report a simple bug. When using a grid, the Listener embedded within a SelectionModel->CellSelectionModel->Listeners is missing the 4th param on the returned event. See example:
Grid...
<SelectionModel>
<ext:CellSelectionModel>
<Listeners>
<CellSelect Fn="cellClick" />
</Listeners>
</ext:CellSelectionModel>
</SelectionModel>
Event:var cellClick = function(grid, rowIndex, columnIndex, e) {
alert(grid + ',' + rowIndex + ',' + columnIndex + ',' + e);
}
Returns: NOTICE: 4th param == undefined[object Object],0,7,undefined
Meanwhile, if you don't embed the listener in a selectionmodel and just use it on the grid.
<Listeners>
<CellClick Fn="cellClick" />
</Listeners>
Returns[object Object],0,7,[object Object]