- 注册时间
- 2013-2-5
- 最后登录
- 2021-1-22
- 阅读权限
- 10
- 积分
- 381
- 精华
- 0
- 帖子
- 74
|
felt 发表于 2013-6-28 19:05
row=grid.getSelected();
你总要选中行才去update吧
http://www.miniui.com/demo/index.html#src=datagrid/rowedit.html
- <div type="checkboxcolumn" name="married1" field="married1" trueValue="1" falseValue="0" width="60" >婚否</div>
- <div type="checkboxcolumn" name="married2" field="married2" trueValue="1" falseValue="0" width="60" >婚否</div>
- <div type="checkboxcolumn" name="married3" field="married3" trueValue="1" falseValue="0" width="60" >婚否</div>
- <div type="checkboxcolumn" field="married" trueValue="1" falseValue="0" width="60" headerAlign="center">婚否</div>
复制代码- function updateRow(row_uid) {
- var row = grid.getRowByUID(row_uid);
- console.log(row_uid,row,row.married1);//这时的row.married1是undefined,要怎么获取值
- //
- //grid.updateRow(row,{married1:"取得row.married1的值",married2:"2"})
复制代码 |
|