Hybrid View

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

      0  

    Default Unanswered: Refresh a TreePanel after deleting a row

    Unanswered: Refresh a TreePanel after deleting a row


    Hi,
    After the tree panel gets prepared and displayed on the screen, there is a Delete record button, which works fine (as when I ran the application again from login page, the deleted record is not shown).

    But after a record is deleted the treepanel doesnot get refresh even after store.load(), reload(), tree.view.refresh().

    Help appreciated.

    Thanks,
    Shweta

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    Answers
    124
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    hi shweta,

    If you want to Refresh your tree panel, try this code -

    yourTreePanel.getView().refresh();
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

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

      0  

    Default


    Hi Sword,
    Thanks for the reply but I have already tried the code you provided.
    Even it is also not working.

    Thanks,
    Shweta

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    9
    Vote Rating
    1
    joaquingt is on a distinguished road

      0  

    Default


    just reload your store

    Code:
    yourstore.load();

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

      0  

    Default


    Hi JoaquingtThanks for replying.
    But i have used below code and it's not working.
    It says "
    TypeError: a is undefined

    "

    Code goes below:
    panel.getStore().load();

    Thanks,
    Shweta