jQuery MiniUI
标题:
如何js生成lookup组件
[打印本页]
作者:
happylover1278
时间:
2022-5-30 17:22:12
标题:
如何js生成lookup组件
需要动态生成lookup及其关联的gridPanel
作者:
felt
时间:
2022-5-31 09:49:10
var panel1 = new mini.Panel();
panel1.set({
showToolbar:true,
showHeader:false,
showCloseButton: true,
style:"width:450px;height:250px",
bodyStyle:"padding:0",
borderStyle:"border:0"
})
panel1.render(document.body);
var bodyEl = panel1.getBodyEl();
var grid1 = new mini.DataGrid();
grid1.set({
url: "../data/AjaxService.aspx?method=SearchEmployees",
columns: [
{ type: "checkcolumn" },
{ field: "loginname", header: "员工账号" },
{ field: "name", header: "姓名" }
],
style: "width:100%;height:100%",
borderStyle: "border:0",
multiSelect:true
})
grid1.load();
grid1.render(bodyEl);
var lk = new mini.Lookup();
lk.set({
width:200,
popup:panel1,
grid:grid1,
textField:"name",
valueField:"id"
})
lk.render(document.body);
复制代码
作者:
happylover1278
时间:
2022-6-6 17:49:12
felt 发表于 2022-5-31 09:49
谢谢.....
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2