- 注册时间
- 2014-2-12
- 最后登录
- 2018-7-26
- 阅读权限
- 10
- 积分
- 239
- 精华
- 0
- 帖子
- 64
|
本帖最后由 thunder_0927 于 2014-3-11 09:40 编辑
- <div id="mainPage"></div>
复制代码- var i = 0;
- var arrGrid = new Array();
- for (i; i < arrHospitals.length; i++) {
- var temp = arrHospitals[i];
- arrGrid[i] = new mini.DataGrid();
- arrGrid[i].set({
- url: "",
- style: "width:700px;height:280px;",
- columns: [
- { type: "indexcolumn" },
- { field: "loginname", width: 120, headerAlign: "center", allowSort: true, header: "员工账号", editor: { type: "textbox", minValue: 0, maxValue: 200, value: 25 } },
- { field: "age", width: 100, headerAlign: "center", allowSort: true, header: "年龄", editor: { type: "spinner" } },
- { field: "birthday", width: 100, headerAlign: "center", dateFormat: "yyyy-MM-dd H:mm", allowSort: true, header: "生日", editor: { type: "datepicker" } },
- { field: "remarks", width: 120, headerAlign: "center", allowSort: true, header: "备注", editor: { type: "textarea" } },
- //{ field: "gender", type: "comboboxcolumn", autoShowPopup: true, width: 100, headerAlign: "center", header: "性别", editor: { type: "combobox", data: Genders } },
- //{ field: "country", type: "comboboxcolumn", width: 100, headerAlign: "center", header: "国家", editor: { type: "combobox", url: "../data/countrys.txt" } },
- { field: "married", trueValue: 1, falseValue: 0, type: "checkboxcolumn", width: 60, headerAlign: "center", header: "婚否" }
- ]
- });
- arrGrid[i].render(mini.get("mainPage"));
复制代码
未生成datagrid
|
|