jayesh
jayesh

Reputation: 2492

extjs4 autoLoad for render html page is not working ?

this code working in extjs 3 but now i convet my app to extjs 4 its not working give any solution

var invent_el = Ext.getCmp('tabcon');    
var tab = invent_el.getItem('tab_Transfer');
if(tab)
{
     tab.show();
}else{
     invent_el.add({
         title    : 'Transfer Stock',
         html     : 'This is Order Tab...',
         activeTab: 0,
         closable : true ,
         id: 'tab_Transfer',
         autoLoad:{url:'/reorder_details',scripts:true}
    }).show();
}

Upvotes: 0

Views: 2990

Answers (1)

nscrob
nscrob

Reputation: 4483

I believe Transfer Stock is a tab panel, and in extjs 4 the tab panel does not have a autoLoad configuration. Replace the autoload config with a loader

loader: {
        url: '/reorder_details',
        scripts: true,
        autoLoad: true
}

Upvotes: 2

Related Questions