extjs4.1 - Extjs 4 - How to up to parent component in initComponent function -


i define gridpanel like

    ext.define('example', {         extend: 'ext.grid.panel',            alias: 'mygrid',         store:ext.create('ext.data.store', {             fields: [                 {name: 'name'}             ]         }),         initcomponent: function() {              alert(this.up('window').title); //but error this.up(...) undefined              this.callparent(arguments);         }     ... 

and create window have item above

   items: {           xtype: 'mygrid'     } 

i want thing in parent componet. how parent component in initcomponent function. thanks

    initcomponent: function() {          var me = this;           this.callparent(arguments);          me.on('render', function() {              alert(me.up('window').title);          });     } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -