Roo.QuickTips.init();
+ var sampleData =
+
+
+
/*
* ================ Form 2 =======================
*/
xtype : 'ComboCheck',
xns: Roo.form,
- name : 'states_list',
fieldLabel: 'State',
+
+ name : 'states_list',
hiddenName:'states',
+
+
+ valueField : 'abbr',
+ displayField:'state',
+
+
store: {
xns : Roo.data,
xtype : 'SimpleStore',
data : Roo.exampledata.states // from states.js
},
- displayField:'state',
+
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true,
- width:190
+ width:190,
+ listeners : {
+ change: function() {
+ Roo.log("changed to " + this.getValue());
+
+ }
+ }
}
});
mform.render('form-ct5');
- combo = mform.findField('states_list');
+ combo = mform.findField('states');
+ mform.setValues({
+ states : '["AK","AZ"]',
+ states_list : "Alaska, Arizona"
+
+ })
+
+
});
\ No newline at end of file