View Full Version : MVC and treepanel

14 Feb 2012, 12:19 PM

The store configuration is a required config of Treepanels. So my question is very simple: doesn't it break the MVC concept, and more importantly, what would be the recommended way for creating treepanels in an MVC app?

14 Feb 2012, 12:20 PM
There are many ideals about what MVC actually is. You can create your treepanel in a controller with a store assigned to it.

14 Feb 2012, 12:34 PM
Thank you, that was a quick answer!
Of course what you are suggesting is a solution, but I would like to be a bit more specific and check what I did is the best way:
I have defined a view giving no store, then i have added it in my controller, but not as a view, instead using "requires", and then created the view from my controller, passing the store.