- 注册时间
- 2013-9-16
- 最后登录
- 2019-3-11
- 阅读权限
- 10
- 积分
- 172
- 精华
- 0
- 帖子
- 52
|
ShowGridWindow = function () {
ShowGridWindow.superclass.constructor.call(this);
this.initControls();
this.initEvents();
}
mini.extend(ShowGridWindow, mini.Window, {
url: "",
keyField: "key",
multiSelect: false,
//这边如何加?columns:value,?
title: "选择用户",
keyLable: "名称:",
searchLable: "查询:",
width: 580,
height: 320,
bodyStyle: "padding:0;",
allowResize: true,
showModal: true,
showToolbar: true,
showFooter: true,
initControls: function (){
this.grid = new mini.DataGrid();
this.grid.set({
multiSelect: this.multiSelect,
style: "width: 100%;height: 100%;",
borderStyle: "border:0",
columns://这里怎么写啊
//columns: [
// { type: "checkcolumn", header: "#" },
//{ type: "indexcolumn", header: "#", headerAlign: "center" },
// {header: "帐号", field: "loginname" },
// { header: "姓名", field: "name" }
//]
});
this.grid.setUrl(this.url);
this.grid.render(bodyEl);
}
//JSP中,我设置列想写成这样的
columns: [
{ type: "checkcolumn", header: "#" },
{ type: "indexcolumn", header: "#", headerAlign: "center" },
{header: "帐号", field: "loginname" },
{ header: "姓名", field: "name" }
] |
|