examples/form/combocheck.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 04:16:06 +0000 (12:16 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 2 Sep 2011 04:16:06 +0000 (12:16 +0800)
examples/form/combocheck.js

index 90154de..5105fd9 100644 (file)
@@ -18,14 +18,33 @@ Roo.onReady(function(){
         labelAlign: 'top',
         items : [
             {
-                xtype : 'Combo',
+                xtype : 'CoComboBoxmbo',
                 xns: Roo.form,
                 
+                name : 'states_list'
+                fieldLabel: 'State',
+                hiddenName:'states',
+                store: {
+                    xns : Roo.data,
+                    xtype : 'SimpleStore',
+                    fields: ['abbr', 'state'],
+                    data : Roo.exampledata.states // from states.js
+                   
+                },
+                displayField:'state',
+                typeAhead: true,
+                mode: 'local',
+                triggerAction: 'all',
+                emptyText:'Select a state...',
+                selectOnFocus:true,
+                width:190
+          }
+
             
         ]
         
     });
 
     mform.render('form-ct5');
-    editor = mform.findField('bio');
+    editor = mform.findField('states');
 });
\ No newline at end of file