1.combobox定义如下 mu_project_ds_add = new Ext.data.JsonStore({ url : 'GetProjectSelectList', root : 'root', autoLoad : true, fields : [ 'projectid', 'projectname' ] }); mu_combo_project_add = new Ext.form.ComboBox({ fieldLabel : '项目(*)', name : 'mu_combo_project_add', editable : true, mode : 'remote',…
2011-07-07 11:02 · 评论(0)
1.record声明如下 machineuse_record = Ext.data.Record.create([{ name : 'id', type : 'int' }, { name : 'projectname', type : 'string' }, { name : 'projectid', type : 'int' }, { name : 'ip', type : 'string' }, { name : 'server', type : 'string' }]); 2.datastor声明如下 machineuse_list_grid_store = new Ext.data…
2011-07-07 10:12 · 评论(0)
Ext.data.Store是extjs的数据结构。 主要用于extjs的grid和combobox等控件的数据加载和操作。实际上对grid的增删改可以通过对store的操作来控制. 例子:对grid的增删操作 A.增加一条记录 1. 首先需要定义每条record的结构,这点很重要,方便后面对记录的操作。也是很好的编程习惯 machine_record = Ext.data.Record.create([{ name : 'id', type : 'int' }, { name : 'ip', type : 'string' }, { name : 'env', type : 'string…
2011-07-05 18:57 · 评论(0)