Results 1 to 2 of 2

Thread: How to bubble events from Store (revisited)

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2008
    Vote Rating

    Default How to bubble events from Store (revisited)

    Hello everyone. I tried to do some research on how to bubble an event from the Store and I came across this thread from the EstJS 4 forum -

    With that, I tried to see if I can accomplish this in 3.2.1 and what I would to accomplish is to be able to bubble an event from the store after the records have been loaded.

    Here, I have extended the store with the event I need to fire after the records have been loaded.
    // Extension of the Store
    Ext.ux.GridAwareStore = Ext.extend
            constructor: function(config){
                Ext.ux.GridAwareStore.superclass.constructor.apply(this, arguments);
                this.reader.readRecords =      this.reader.readRecords.createSequence(this.verifyResponse, this);
            verifyResponse: function(o){
                console.log('got the load');
            loadData : function(o, append){
                this.fireEvent('actioncomplete', this);
            listeners: {
                storeloaded: function(r) {
    The issue on the Grid is that I am able to capture the event being fired from the Store only once (initial loading). After that, this section of code is never reached.
    // GridPanel overridden
    Ext.override(Ext.grid.GridPanel, {
        bubbleEvents: ['actioncomplete'],
        initComponent: Ext.grid.GridPanel.prototype.initComponent.createSequence(function() {
                this.addListener('actioncomplete', function() {}, this);
                console.log('the grid has it');
    The questions I have are how does one maintain passing the Store's data while bubbling the event and why is my listener only capturing the event once.

    Any help is greatly appreciated. Thank you.
    Last edited by mastachef; 3 Mar 2012 at 5:30 AM. Reason: clearer explaination

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    The actioncomplete event on the grid is only going to fire once as it's in the initComponent which only fires once.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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