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?

    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
    441
    Vote Rating
    21
    Answers
    7
    Zdeno will become famous soon enough Zdeno will become famous soon enough

      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