1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    23
    Vote Rating
    0
    Answers
    1
    shwetapro is on a distinguished road

      0  

    Default Answered: Is there any setStore() method for TreePanel?

    Hi,
    In my case I have a template defined for a treepanel but I have to pass the actual data(dynamic data) only after certains start up tasks are completed.
    So the usecase is to pass store to treepanel after condition X has occured.

    Any clue how to do that?

    There is getStore() method but no setStore() method.

    Help and suggestions appreciated.

    Thanks,
    Shweta

  2. Override your TreePanel or use
    Code:
    Ext.apply(yourTreePanel, {
        store: yourStore
    });
    Overwrite will use same code inside of setStore() function.

    I didnt test it but basically it could work.

  3. #2
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    747
    Vote Rating
    70
    Answers
    38
    Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice

      0  

    Default

    Override your TreePanel or use
    Code:
    Ext.apply(yourTreePanel, {
        store: yourStore
    });
    Overwrite will use same code inside of setStore() function.

    I didnt test it but basically it could work.

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    23
    Vote Rating
    0
    Answers
    1
    shwetapro is on a distinguished road

      0  

    Default

    Hi Zdeno,
    Thanks it worked.

Thread Participants: 1

Tags for this Thread