1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
    sergiofilhowz is on a distinguished road

      0  

    Default Unanswered: What event a Store dispatch when the data is loaded ?

    Unanswered: What event a Store dispatch when the data is loaded ?


    I'm creating a custom Store with an entire different load function, so I overrided the function and did not called the parent function.

    I did the request and got the response and filled the store.data with the returned data, but the grid.Panel didn't update at all.

    What from the grid panel listens to the store? I've looked into all docs and codes to find an answer to this and nothing.

    I tried all of this:
    me.data.removeAll();
    me.data.addAll(object.filterResult.result);
    me.fireEvent('load', object.filterResult.result, true);
    me.fireEvent('datachanged');
    me.fireEvent('refresh');

    I also tried creating a new MixedCollection and firing all os these events

  2. #2
    Sencha Premium Member krullj's Avatar
    Join Date
    Sep 2011
    Posts
    35
    Answers
    2
    Vote Rating
    6
    krullj is on a distinguished road

      0  

    Default


    When you're firing an event, you need to pass the object as the second parameter. In your case, you would probably want to do this:
    Code:
    me.fireEvent('datachanged', me);
    Hopefully that fixes your problem.

Thread Participants: 1

Tags for this Thread