14 Nov 2012 12:46 AM #1
Answered: Change view in sencha touch 2
I had make a controller in sencha touch 2 in which i am performing an ajax request.
I want to change the view on suceess.
Currently i am using
var firststep = Ext.create('Myapp.view.Rangeselector'); Ext.getCmp('loginForm').destroy();
It is destroying loginForm but didn't load Rangeselector view.
Can anyone please give me a solution.
var firststep = Ext.create('Myapp.view.Rangeselector'); Ext.Viewport.setActiveItem(firststep);