Results 1 to 3 of 3

Thread: Controller methods

  1. #1
    Sencha User env0ke's Avatar
    Join Date
    Apr 2011
    Posts
    57
    Answers
    2
    Vote Rating
    1
      0  

    Question Controller methods

    Hi all

    I try start example from extjs-4.0.2 docs:


    Ext.define('MyApp.controller.Users',{
    extend
    :'Ext.app.Controller',

    refs
    :[
    {
    ref:'list',
    selector
    :'grid'
    }
    ],

    init
    :function(){
    this.control({
    'button':{
    click
    :this.refreshGrid
    }
    });
    },

    refreshGrid
    :function(){
    this.getList().store.load();
    }
    });

    But i see error "this.getList() is undefined" in firebug. What i can do?

  2. #2
    Sencha User env0ke's Avatar
    Join Date
    Apr 2011
    Posts
    57
    Answers
    2
    Vote Rating
    1
      0  

    Default

    Problem solved. I set incorrect selector for grid in my app.

  3. #3
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    When you post code, please wrap in the BBCode tags.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •