- 注册时间
- 2017-9-7
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 23
- 精华
- 0
- 帖子
- 0
|
var = strHtml
strHtml += "{ field: 'curr_amount_d', width: 100, headerAlign:'center',align:'right',dataType:'currency',numberFormat:'n',header: '金额'},"
strHtml=eval(strHtml);
grid.set({columns:strHtml});
如何做出下方代码中“工作信息”下面3个分列的效果
<div id="datagrid1" class="mini-datagrid" style="width:700px;height:250px;" url="../data/AjaxService.aspx?method=SearchEmployees" >
<div property="columns">
<div type="indexcolumn"></div>
<div field="loginname" width="120" headerAlign="center" allowSort="true">员工帐号</div>
<div field="name" width="120" headerAlign="center" allowSort="true">姓名</div>
<div header="工作信息">
<div property="columns">
<div field="dept_name" width="120">所属部门</div>
<div field="position_name" width="100">职位</div>
<div field="salary" width="100" allowSort="true">薪资
</div>
</div>
</div>
</div>
</div>
|
|