- <P> 按F12查看原代码 </P>
- <P> //var f13_state = {
- // "F_Items": [["-1", "请选择", 1], ["0", "收据", 1], ["1", "发票", 1], ["2", "增值税普通发票", 1], ["3", "增值税专用发票", 1]],
- // "SelectedValue": "-1", "SelectedValueArray": ["-1"]
- //};
- //var f13_autopostback = function (cmp) { if (cmp.f_tmp_lastvalue !== cmp.getValue()) { __doPostBack('Window1$RegionPanel1$Toolbar4$DropDownList2', ''); } };
- //var f13 = Ext.create('Ext.form.field.ComboBox', {
- // f_state: f13_state, id: 'Window1_RegionPanel1_Toolbar4_DropDownList2', width: 150,
- // name: 'Window1$RegionPanel1$Toolbar4$DropDownList2', editable: false,
- // forceSelection: true, hiddenName: 'Window1$RegionPanel1$Toolbar4$DropDownList2$Value',
- // store: Ext.create('Ext.data.ArrayStore', { fields: ['value', 'text', 'enabled', 'prefix'], data: F.simulateTree.transform(f13_state.F_Items) }),
- // value: f13_state.SelectedValue, tpl: F.util.ddlTPL, queryMode: 'local', triggerAction: 'all',
- // listeners: {
- // beforeselect: function (cmp, record, index) {
- // if (!record.data.enabled) { return false; }
- // cmp.f_tmp_lastvalue = cmp.getValue(); window.setTimeout(function () { f13_autopostback(cmp); }, 100);
- // }
- // }
- //});</P>
- <P>改成以下,但没有显示出来????????
- var f13_state = {
- "F_Items": [["-1", "请选择", 1], ["0", "收据", 1], ["1", "发票", 1], ["2", "增值税普通发票", 1], ["3", "增值税专用发票", 1]],
- "SelectedValue": "-1", "SelectedValueArray": ["-1"]
- };
- var store1 = Ext.create('Ext.data.ArrayStore', { fields: ['value', 'text', 'enabled', 'prefix'], data: F.simulateTree.transform(f13_state.F_Items) });
- DropDownList2.getStore().loadData(store1);</P>
复制代码
|