jQuery MiniUI
标题:
grid.setSelected未改变页面展示
[打印本页]
作者:
cy_hawk
时间:
2019-5-27 10:30:42
标题:
grid.setSelected未改变页面展示
<div id="appgrid" class="mini-datagrid" style="width:100%;height:95%"
url="<%=request.getContextPath() %>/com.primeton.dpms.quality.qualitytask.qualityTaskComponent.loadRuleProblembiz.biz.ext" idField="id" allowResize="false"
sizeList="[15,20,50,100]" multiSelect="true" onrowdblclick="getManager" pageSize="15" allowAlternating="true" allowResizeColumn="true" allowCellEdit="true" allowCellSelect="true" allowCellValid="true">
<div property="columns">
<div type="indexcolumn" headerAlign="center">序号</div>
<div field="rulesName" headerAlign="center" allowSort="false">数据质量规则名称</div>
<div field="systemname" headerAlign="center" allowSort="false">检核系统</div>
<div field="manager" headerAlign="center" >负责人
</div>
<div field="startTime" dateFormat="yyyy-MM-dd HH:mm" headerAlign="center" allowSort="false">检核日期</div>
<div field="createuser" headerAlign="center" allowSort="false">规则创建人</div>
<div field="endTime" dateFormat="yyyy-MM-dd HH:mm" headerAlign="center" allowSort="false">数据日期</div>
<div field="totalCount" headerAlign="center" allowSort="false">检核数据总数</div>
<div field="priblemCount" headerAlign="center" allowSort="false">问题数</div>
<div field="rateProblem" headerAlign="center" allowSort="false">问题率</div>
</div>
</div>
复制代码
上面是我的datagrid,下面是我的js
nui.open({
url:"<%=request.getContextPath() %>/qualitytask/getUser.jsp",
title:"选择负责人",
width:650,
height:500,
showModal:true,
onload: function () {
var iframe = this.getIFrameEl();
var data = {row:row};
iframe.contentWindow.SetData(data);
},
ondestroy:function(action){
// grid.reload();
if(action=="ok"){
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
row.manager=data.userId;
grid.setSelected (row);
}
}
});
复制代码
我修改了manager这个值,但是页面上却没有改变
作者:
felt
时间:
2019-5-27 11:17:51
grid.updateRow(row,{field:value})这才是修改方法,setSelected只是选中行
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2