extjs4 - ExtJS 4 prbolem with using business logic in the controller when it's triggerd from the view -


i have view designed that:

ext.define('my.view.notificationmails', {     extend: 'ext.grid.panel',     alias: 'widget.notificationmailspanel',     id: 'id-notification-mails-panel', 

and have controller view is:

ext.define('my.controller.notificationmailscontroller', {     extend: 'ext.app.controller',     models: [     'notificationmailsrecord'     ],      stores: [     'notificationmailsstore'     ],      views: [     'notificationmails'     ], //  refs:[{ //      ref: 'notificationmails', //      selector: 'mailgrid'     //  }],      init: function()    {         this.control({             '#id-notification-mails-panel': {                  itemclick: this.clickedsomething             }          })      }, 

and make test , find problem simple function definition itemclick :

clickedsomething: function() {     console.log('deteceted click'); } 

but nothing happens. tried many variations , still can't actions view execute functions in controller. curios thing have several controllers , in of them works expected 1 , few others - don't know - maybe wrong, maybe reason somewhere else.

thanks

leron

,

this weird. i'd try following: console.log within init() see if controller initialized (you might have forgotten include in app list of controllers).


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -