Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default TreeStore load event not firing

    TreeStore load event not firing


    Any idea why the following code will not fire the load event for a TreeStore?
    Code:
                        store: new Ext.data.TreeStore({
                            model: 'menuItem',
                            proxy: {
                                url: '../getMenuItems',
                                type: 'ajax',   
                                reader: {
                                    type: 'tree',
                                    root: 'subs'
                                }
                            },
                            listeners: {
                                load: function (store, recs, success) {    //<===  if changed to beforeload, it fires
                                    alert('Tree data loaded');
                                }
                            }
                            
                        }),

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Can somebody please take a look at this and tell my why the load event is not firing for TreeStores as stated in the API? Otherwise I am going to assume this is a bug. beforeload fires just fine.

  3. #3
    Ext User
    Join Date
    Dec 2010
    Posts
    11
    Vote Rating
    0
    snapshotmedia is on a distinguished road

      0  

    Default


    I believe this may well be a bug.

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2008
    Posts
    710
    Vote Rating
    6
    Bucs is on a distinguished road

      0  

    Default


    Thanks for the confirmation @snapshot

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    xav_19 is on a distinguished road

      0  

    Default still the case

    still the case


    as of today this event is not fired
    but there's an undocumented event 'read' fired in onProxyLoad and it seems to do the trick

    this.fireEvent('read', this, operation.node, records, operation.wasSuccessful());

    BEWARE: with a MemoryProxy operation is never set to succesfull

    hope it helps

Similar Threads

  1. [DUPE-447] Ext.data.TreeStore firing "read" not "load"
    By benwhite in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 3 Nov 2010, 1:32 PM
  2. [OPEN-447] TreeStore not firing "load" event
    By Steffen Hiller in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 21 Oct 2010, 3:33 PM
  3. Load event not firing...
    By CayIT in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 2 Feb 2010, 9:20 AM
  4. [SOLVED] DirectStore not Firing Load Event
    By kouphax in forum Ext.Direct
    Replies: 2
    Last Post: 11 Jun 2009, 12:06 AM
  5. JsonView not firing load event
    By alanwilliamson in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 23 Feb 2007, 7:23 PM

Thread Participants: 2