View Full Version : attaching event listeners to the Ext.grid.GridPanel (API version 3.3.1)

1 May 2011, 3:47 AM
I'm following a tutorial and I'm trying to attach some events to a grid component.
What I've done is create the grid by:

var grid = new Ext.grid.GridPanel({
/* some config parameters here, like renderTo, title, etc.... */
sm: new Ext.grid.RowSelectionModel({
singleSelect: true,
listeners: {
rowselect: function(sm, index, record) {
Ext.Msg.alert('hi ',record.get('title'));
/*...more events should go here...*/

My problem is that I couldn't find anything in the documentation regarding what types of events (other than 'rowselect') I can use in the listeners object for RowSelectionModel?

I tried adding a mouseover event but it didn't work.


1 May 2011, 11:50 PM
Try this (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.grid.RowSelectionModel) for the RowSelectionModel and this (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.grid.GridPanel) for the GridPanel. All events are listed there.