首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

编者Grid列动态获取ComboBox.store

2013-12-30 
编辑Grid列动态获取ComboBox.storevar cm new Ext.grid.ColumnModel({columns : [sm, new Ext.grid.RowN

编辑Grid列动态获取ComboBox.store
var cm = new Ext.grid.ColumnModel({columns : [sm, new Ext.grid.RowNumberer(), {header : 'projectchecksetid',dataIndex : 'projectchecksetid',hidden : true},{header : 'proTypeId',dataIndex : 'globalType',hidden : true,renderer : function(globalType) {if (globalType){proTypeId = globalType.proTypeId;var cbdepartment = Ext.getCmp('cbdepartment');cbdepartment.store.proxy= new Ext.data.HttpProxy({url: __ctxPath+'/project/comboProjectCheckSet.do?proTypeId='+proTypeId});cbdepartment.store.load();return globalType.proTypeId;}}},{header : '岗位名称',dataIndex : 'positionname'},{header : '人员姓名',dataIndex : 'username'},{header : '审批顺序',dataIndex : 'degree',editor : new Ext.form.ComboBox({id: "cbdepartment",valueField : 'degree',displayField : 'degree',forceSelection: true, selectOnFocus: true, typeAhead: true, store:new Ext.data.JsonStore({//autoLoad:true,url:__ctxPath+'/project/comboProjectCheckSet.do',fields:['degree','degree'],root:'data'}),mode : 'local',triggerAction : 'all',mode: 'local', lazyRender: true ,editable : false})}],defaults : {sortable : true,menuDisabled : false,width : 100}});

?

热点排行