将组合框绑定到easyui属性网格的另一个组合框的变化上 [英] Bind combobox on change of another combobox of property grid of easyui

查看:47
本文介绍了将组合框绑定到easyui属性网格的另一个组合框的变化上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要绑定jquery easy ui属性grid Factor combobox更改另一个属性网格可见组合框。



< pre lang =xml> < table class = easyui-propertygrid id = propGridJS style = width:300px >
< / table >





js代码是

Quote:

var data =

[

{name:Visible,

value: ,

group:得分,

编辑:{type:combobox,options:{

valueField:id,

textField:text,

required:true,

数据:[

{id:1,text:True},

{id:2,text:假}

],

onChange:函数(值){

//需要在这里编写代码



}

}

}

},

{名称:最小值,

值:30,

组:得分,

编辑:数字框



},

{name :因素,

价值:,

group:Fac / SubFac,

编辑: {

type:combobox,

options:{

valueField:id,

textField:text

}

}



}

]

$('#propGridJS')。propertygrid('loadData',data);

$('#propGridJS')。propertygrid({title :'问题',showGroup:true,scrollbarSize:0});







需要帮助才能找不到任何内容google上的东西

解决方案

('#propGridJS')。propertygrid('loadData',data);


('#propGridJS')。propertygrid({title:'Question',showGroup:true,scrollbarSize:0});







需要帮助o这没有在谷歌找到任何东西


Hi,
I need to bind jquery easy ui property grid Factor combobox on change of another property grid visible combobox.

<table class="easyui-propertygrid" id="propGridJS" style="width: 300px">
    </table>



js code is

Quote:

var data =
[
{ "name": "Visible",
"value": "",
"group": "Score",
"editor": { "type": "combobox", "options": {
"valueField": "id",
"textField": "text",
"required": "true",
"data": [
{ "id": 1, "text": "True" },
{ "id": 2, "text": "False" }
],
"onChange": function (value) {
// need to write code here

}
}
}
},
{ "name": "Min value",
"value": "30",
"group": "Score",
"editor": "numberbox"

},
{ "name": "Factor",
"value": "",
"group": "Fac/SubFac",
"editor": {
"type": "combobox",
"options": {
"valueField": "id",
"textField": "text"
}
}

}
]
$('#propGridJS').propertygrid('loadData', data);
$('#propGridJS').propertygrid({ title: 'Question', showGroup: true, scrollbarSize: 0});




need help on this not finding any thing on google

解决方案

('#propGridJS').propertygrid('loadData', data);


('#propGridJS').propertygrid({ title: 'Question', showGroup: true, scrollbarSize: 0});




need help on this not finding any thing on google


这篇关于将组合框绑定到easyui属性网格的另一个组合框的变化上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆