In this project i'm working on I've got a navigation panel based on a panel (layout accordion) and inside each accordion panel i'll have a treepanel.
And because the navigation panel is based on user permissions i have to generate the data when the user logs in.
So my logic structure is something like this:
Module (panel inside the accordion)
- (has many) Folders (tree node)
- (have many / or not) Folders (tree node)
- (have many / or not) Actions (tree node - leaf)
I created models for Modules, Folders and Actions (and the respective stores as well) and my PHP generated JSON is loaded perfectly into the models (relations aswell).
MY PROBLEM IS:
The tree requires a treestore, right? I have a regular Store.
SO, should i implement a DataView and try to mimic the TreePanel or should I ignore all the work i've done and all the models and have the server produce a TreeStore JSON? Maybe there's a third option...
Thank you very much.