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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    When you post code, please wrap in the BBCode tags.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •