PDA

View Full Version : KitchenSink Demo NestedList and MVC



wdiechmann
4 May 2011, 12:10 AM
I tried with a previous thread (http://www.sencha.com/forum/showthread.php?131512-how-to-custom-render-items-in-nestedlist) to raise an issue reg. the nestedlist and MVC with no luck - so here goes again :">

I use the KitchenSink navigation in my project - with the NestedList in the navigationpanel on the left. Once I reach a leaf item in the nested list, I'd like to call some controller's index action (instead of loading demos/list.js - for example)

Am I too deep into Rails here (with MVC ink'ed on my spinal) or?

wdiechmann
4 May 2011, 6:28 AM
using the kitchensink Demo was a valid choice - but I was sidetracked by the MVC!

turns out that I had to launch the app with a Ext.dispatch to a 'dashboard' controller which in turn would implement the kitchensink navigationpanel - and when on the leafs - now would be able to use Ext.dispatch to the controller#action mentioned in the models/Structure.js

simpel and yet so elusive -

time for ~o)