PDA

View Full Version : Refresh a TreePanel after deleting a row



shwetapro
5 Aug 2012, 9:42 PM
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

sword-it
5 Aug 2012, 11:38 PM
hi shweta,

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

yourTreePanel.getView().refresh();

shwetapro
6 Aug 2012, 12:22 AM
Hi Sword,
Thanks for the reply but I have already tried the code you provided.
Even it is also not working. :(

Thanks,
Shweta

joaquingt
6 Aug 2012, 6:28 AM
just reload your store



yourstore.load();

shwetapro
6 Aug 2012, 8:20 PM
Hi JoaquingtThanks for replying.
(http://www.sencha.com/forum/member.php?451628-joaquingt) 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