Here is my code for combobox which is in FormPanel:
When i run it i'm getting the combobox and getting emptyText also...
But the data given in the dept_names is not getting populated :(
Please do help me.
Thanks in advance.
Code:
var dept_names = [ ['1','Electronics and Communication'], ['2','Electrical and Electronics'], ['3','Telecommunication Engineering'], ['4','Instrumentation and Electronics Engineering'] ]; Code for combobox in FormPanel: { xtype:'combo', fieldLabel:'Department Name', allowBlank:false, autoShow:true, id:'department', name:'department', emptyText:'Select the Department from the List', selectOnFocus:true, forceSelection:true, resizable:true, store: new Ext.data.SimpleStore({ id:0, autoLoad:true, fields: [ 'deptId', 'deptName' ] ,data:dept_names }) ,valueField:'deptId' ,displayField:'deptName' ,hiddenName:'deptId' ,mode:'local' }
But the data given in the dept_names is not getting populated :(
Please do help me.
Thanks in advance.
Comment