没有合适的资源?快使用搜索试试~ 我知道了~
Ext->editgrid+combobox
5星 · 超过95%的资源 需积分: 10 10 下载量 44 浏览量
2011-07-11
13:48:09
上传
评论
收藏 7KB TXT 举报
温馨提示
试读
6页
Ext中的Combobox下来框在EditGrid中的应用。Combobox显示值问题得以解决。
资源推荐
资源详情
资源评论
var devGridSm = new Ext.grid.CheckboxSelectionModel({header:'',singleSelect:true});
var isadminStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getIsAdminStore'}),//获取json数据得地址
reader : new Ext.data.JsonReader({
fields : ['value', 'text']
}),
autoLoad : true,
listeners : {
'load' : function() {
isadmincombo.setValue(isadmincombo.getValue());
}
}
});
var isadmincombo = new Ext.form.ComboBox({
id:'isadmincombo',
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: isadminStore,
valueField:'value',
displayField:'text',
allowBlank:false,
forceSelection:true
});
var clientStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getClientStore&clients='+clients}),//获取json数据得地址
var isadminStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getIsAdminStore'}),//获取json数据得地址
reader : new Ext.data.JsonReader({
fields : ['value', 'text']
}),
autoLoad : true,
listeners : {
'load' : function() {
isadmincombo.setValue(isadmincombo.getValue());
}
}
});
var isadmincombo = new Ext.form.ComboBox({
id:'isadmincombo',
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: isadminStore,
valueField:'value',
displayField:'text',
allowBlank:false,
forceSelection:true
});
var clientStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getClientStore&clients='+clients}),//获取json数据得地址
reader : new Ext.data.JsonReader({
fields : ['value', 'text']
})
});
var clientcombo = new Ext.form.ComboBox({
typeAhead: true,
id:'clientcombo',
triggerAction: 'all',
lazyRender:true,
mode: 'remote',
store: clientStore,
valueField:'value',
displayField:'text',
allowBlank:false,
forceSelection:true
});
var logintypeStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getLoginStypeStore'}),//获取json数据得地址
reader : new Ext.data.JsonReader({
fields : ['value', 'text']
})
});
var logintypecombo = new Ext.form.ComboBox({
typeAhead: true,
id:'logintypecombo',
triggerAction: 'all',
lazyRender:true,
mode: 'remote',
store: logintypeStore,
fields : ['value', 'text']
})
});
var clientcombo = new Ext.form.ComboBox({
typeAhead: true,
id:'clientcombo',
triggerAction: 'all',
lazyRender:true,
mode: 'remote',
store: clientStore,
valueField:'value',
displayField:'text',
allowBlank:false,
forceSelection:true
});
var logintypeStore=new Ext.data.Store({///列表框中的选项数据
proxy: new Ext.data.HttpProxy({url:Global_Path + '/portals/resource/portalunix.do?method=getLoginStypeStore'}),//获取json数据得地址
reader : new Ext.data.JsonReader({
fields : ['value', 'text']
})
});
var logintypecombo = new Ext.form.ComboBox({
typeAhead: true,
id:'logintypecombo',
triggerAction: 'all',
lazyRender:true,
mode: 'remote',
store: logintypeStore,
剩余5页未读,继续阅读
资源评论
- jilezhenren2013-02-20太好了,找了一天,终于找到中文的
yashya
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功