Hi

I'm newbie. I construct a remote combobox work on formPanel but not work when render on tbar.

Code:

var
combosubj = new Ext.form.ComboBox({ xtype: 'textfield', valueField: 'sb_subjectid', displayField: 'sb_subjname', hiddenValue: 'sb_subjectid', emptyText:'Select a subject...', triggerAction: 'all', mode: 'remote', minChars: 2, width: 350, forceSelection: true, store: _jsremoteSubject
});

the _jsremoteSubject store code
Code:

_jsremoteSubject =
new Ext.data.JsonStore({ autoLoad: true, root: 'rows', fields: [ { name: 'sb_subjectid', type: 'string' }, { name: 'sb_subjname', type: 'string' } ], proxy: new Ext.data.HttpProxy({ method: 'POST', url: 'app/php/sbProfile.php'
})
});


render on toolbar code

Code:

tbar: [combofor,'-',{
       text: 'Retrieve Student Who Taken Subject: ',
        iconCls: 'icon-new',
        handler: onRetrieveStudent
        }, '-', combosubj ],
the same code apply to display on formPanel working well

Thanks in advance.