I am extending GridPanel with Ext.define() (Ext v4).
I need to get the row data when a grid row is double clicked. At this point I cannot even get the event listener working:
Ext.define( Application.usersGrid , {
extend: Ext.grid.GridPanel ,
alias: widget.usersgrid ,
viewConfig: {
listeners: {
dblclick: function(dataview, index, item, e) {
alert( dblclick );
}
}
},
...
What is wrong here?
If anyone needs the answer- this is the right way:
Ext.define( Application.usersGrid , {
extend: Ext.grid.Panel ,
alias: widget.usersgrid ,
viewConfig: {
listeners: {
itemdblclick: function(dataview, record, item, index, e) {
alert( itemdblclick );
}
}
},
...
http://dev.sencha.com/new/ext-js/4-0/api/Ext.grid.GridView#event-itemdblclick