Results 1 to 4 of 4

Thread: need some information about controller

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default need some information about controller

    Hi

    inside controller how to register multiple events to one selector ?

    lets say i have code like this
    Code:
        init: function()
        {
            this.control({
                'myapp_login': {
                    beforeclose: this.onLoginclose
                },
                'myapp_login': {
                    afterrender: this.onAfterrender
                }                                            
            });        
        }
    only beforeclose function is called and afterrender function not called any idea why its calling only first function?

    how to register multiple event calls like this?

    Regards

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    224
    Answers
    13
    Vote Rating
    10
      0  

    Default

    are you using 4.1beta3 theres alot of posts bout afterrender not triggering with beta3

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default

    nope, im using 4.0.7

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    163
    Vote Rating
    0
      0  

    Default

    this seems to be working

    Code:
    init: function()
    {
        this.control({
            'myapp_login': {
                beforeclose: this.onLoginclose,
                afterrender: this.onAfterrender
            }                                            
        });        
    }

Posting Permissions

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