1. #1
    Sencha User
    Join Date
    Aug 2008
    Location
    Gothenburg
    Posts
    157
    Vote Rating
    2
    Answers
    1
    Dr. Flink is on a distinguished road

      0  

    Default Answered: Listen to grid plugins expandbody event in controller

    Answered: Listen to grid plugins expandbody event in controller


    Hi,

    I'm trying to listen to rowExpanders "expandbody" event inside of the controller, but I can't seem to get it to work.

    Simply adding the following code will do nothing:
    Code:
    this.control({
        'grid': {
            expandbody: function() {
                console.log('Hello world');
            }
        }
    });

  2. I found the solution reading the code:
    Code:
    this.control({ 
        'grid tableview': {
            expandbody: function() {
                console.log('Hello world');
            }
        }
    });

  3. #2
    Sencha User
    Join Date
    Aug 2008
    Location
    Gothenburg
    Posts
    157
    Vote Rating
    2
    Answers
    1
    Dr. Flink is on a distinguished road

      1  

    Default


    I found the solution reading the code:
    Code:
    this.control({ 
        'grid tableview': {
            expandbody: function() {
                console.log('Hello world');
            }
        }
    });
    Last edited by Dr. Flink; 10 Jul 2012 at 9:53 AM. Reason: Code wrap