在easyUI联动加载下拉框的时候为什么 只能显示 不能选择下拉框的值 我绑定的id 是唯一的啊 !!求解!!
functionBindEnergy(){varparm={};parm.type=true;$("#txtName").combobox({url:'/EnergyCo...
function BindEnergy() {
var parm = {};
parm.type = true;
$("#txtName").combobox({
url: '/EnergyConsum/GetEnergyInfo',//绑定下拉列表中的值
editable: false,
queryParams: parm, //异步查询的参数
valueField: 'code',
textField: 'ename',
panelHeight: 'auto',
onLoadSuccess: function (param) {
if (param.length > 0)
$("#txtName").combobox('select', param[0].code)
},
onSelect: function (record) {
var pram = {};
pram.name =record.code;
$("#txtType").combobox({
url: '/EnergyConsum/GetMeasureById',
editable: false,
queryParams: pram,
valueFiled: 'MNO',
textField: 'MNAME',
panelHeight: 'auto'
})
}
})
} 展开
var parm = {};
parm.type = true;
$("#txtName").combobox({
url: '/EnergyConsum/GetEnergyInfo',//绑定下拉列表中的值
editable: false,
queryParams: parm, //异步查询的参数
valueField: 'code',
textField: 'ename',
panelHeight: 'auto',
onLoadSuccess: function (param) {
if (param.length > 0)
$("#txtName").combobox('select', param[0].code)
},
onSelect: function (record) {
var pram = {};
pram.name =record.code;
$("#txtType").combobox({
url: '/EnergyConsum/GetMeasureById',
editable: false,
queryParams: pram,
valueFiled: 'MNO',
textField: 'MNAME',
panelHeight: 'auto'
})
}
})
} 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏5(财富值+成长值)
1个回答
展开全部
var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});
追问
其实是我粗心 把单词写错了 不过还是谢谢你!!3QQQ !!
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询