How to refresh tree menu dinamically?

Hi,
I’ve a tree menu as a file explorer. Each menu option as a folder shows a grid with all files. From there a user could create a new folder, and then, how can I refresh the menu/tree folders?

thanks

Hi aamartinezz,
the tree menu uses jsTree Jquery plugin. I played a bit with a treemenu on an own project.
Scriptcase creates an element with name ‘css3menut’.
I tried some functions in browser’s console like $(’#css3menut’).jstree().hide_all() and (’#css3menut’).jstree().show_all() and both worked hiding and showing all nodes.
But if I try to use existing function refresh like this, $(’#css3menut’).jstree(true).refresh(); nothing happens.
Sorry I can give you a complete solution, but maybe you can use this as a starting point to solve it

Thanks dossamau,
I’ll keep analyzing and give you feedback

Hi dossamau,
I solved it
It was easier as I expected
In the app, when you do any change, then
sc_redir(‘menu’,"","_parent");

the tree menu do a refresh updating the info added/changed/removed by the app
obviously the menu is dinamic