3 * (C) Alan Knowles 2011
4 * Licence : Roojs - LGPL
9 Roo.onReady(function(){
31 ['DC', 'District of Columbia']
44 ['E', 'Empty states', []],
47 * ================ Form 2 =======================
55 xtype : 'ComboNested',
70 xtype : 'SimpleStore',
71 fields: ['abbr', 'state' , 'cn'],
72 data : sampledata// from states.js
79 emptyText:'Select a state...',
84 Roo.log("changed to " + this.getValue());
91 xtype : 'ComboNested',
94 displayField : 'fullpath',
96 emptyText : 'Category',
97 fieldLabel : 'Category',
98 forceSelection : true,
99 hiddenName : 'supplier_category_id',
101 loadingText : 'Searching',
103 name : 'supplier_category_id_name',
106 queryParam : 'query[fullpath]',
107 selectOnFocus : true,
108 triggerAction : 'all',
113 select : function (combo, record, index)
115 _this.grid.footer.onClick('first');
123 sortInfo : { direction : 'ASC', field: 'fullpath' },
125 beforeload : function (_self, o){
126 o.params = o.params || {};
135 url : '/web.Texon/admin.php/Roo/category.php',
140 xtype : 'JsonReader',
141 fields : [{"name":"id","type":"int"},{"name":"fullpath","type":"string"}],
144 totalProperty : 'total',
157 mform.render('form-ct5');
158 combo = mform.findField('states');
160 states : '["AK","AZ"]',
161 states_list : "Alaska, Arizona"