Note that there are some explanatory texts on larger screens.

plurals
  1. POExtJs 4.1 TypeError: 'listener.fireFn is undefined' on grid selectionchange event in controller
    primarykey
    data
    text
    <p>It's very similar question to already posted issue <a href="http://www.sencha.com/forum/showthread.php?245591" rel="nofollow">http://www.sencha.com/forum/showthread.php?245591</a></p> <p>Here is my code for Grid (please note that commented listener declared in grid works fine)</p> <pre><code>Ext.define( 'Fast.view.sales.SalesForecastDealersGrid ' ,{ extend: 'Ext.grid.Panel', alias : 'widget.SalesForecastDealersGrid' , selModel: Ext.create( 'Ext.selection.CheckboxModel' ),// sm, requires:[ 'Ext.toolbar.Paging'], columnLines: true, store: 'sales.SalesForecastDealers', //'sales.ProductByAccount', columns: [{text: 'Dealer Id',hidden: true ,flex:1,dataIndex:'dealerId' }, {text: 'Customer Name',flex:1,sortable: true,dataIndex: 'dealerName' }, {text: 'Sales Ids',hidden: true,flex:1,sortable: false ,dataIndex:'salesIds' }], initComponent: function () { this .dockedItems = [ { xtype: 'pagingtoolbar' , dock:'bottom' , store: 'sales.SalesMonthFct' ,//localStore, displayInfo: true , displayMsg: 'Displaying ProductByAccount {0} - {1} of {2}' +'&amp;nbsp &amp;nbsp &amp;nbsp', emptyMsg: "No ProductByAccount to display" }]; this .callParent(arguments); } /*, listeners:{ selectionchange : function(model, records) { // var records = grid.getSelectionModel().getSelection(); alert('section changed handler'); }}*/ }); </code></pre> <p>and for Controller</p> <pre><code>Ext.define( 'Fast.controller.sales.SalesForecastController', { extend: 'Ext.app.Controller', stores: ['sales.SalesWeekFct' ,'sales.SalesMonthFct' ,'sales.SalesForecastDealers' ], models: [ 'sales.SalesWeekFctModel', 'sales.SalesMonthFctModel' ], views: ['sales.SalesForecastWeeklyGrid' ,'sales.SalesForecastMonthlyGrid' ,'sales. SalesForecastDealersGrid' ], refs: [{ref: 'SalesForecastWeeklyGrid',selector: 'SalesForecastWeeklyGrid' } ,{ref: 'SalesForecastMonthlyGrid' ,selector: 'SalesForecastMonthlyGrid' } ,{ref: 'SalesForecastDealersGrid ',selector: 'SalesForecastDealersGrid '} ], init: function () { this .control({ //'SalesForecastDealersGrid [action=change]': {selectionchange: this.dealerSelectionChange}, 'SalesForecastDealersGrid ': {selectionchange: this .dealerSelectionChange} }); }, dealerSelectionChanged : function (model, records) { //var records = grid.getSelectionModel().getSelection(); alert( 'Controllers section changed handler' ); } }); </code></pre> <p>as you notice I've commented line "'SalesForecastDealersGrid [action=change]': {selectionchange : this.dealerSelectionChange}," because I can't find any documentation about that '[action=change]' and it simply does not fire anything in my case.</p> <p>with my code when I click on grid row I'm getting an error message in console</p> <pre><code>TypeError: listener.fireFn is undefined ...listener &amp;&amp; listener.fireFn.apply(listener.scope || me.observable, args) === fal... </code></pre> <p>Any idea what I can try next?</p> <p>Thank you in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload