- 注册时间
- 2016-1-13
- 最后登录
- 2024-9-5
- 阅读权限
- 10
- 积分
- 2021
- 精华
- 0
- 帖子
- 271
|
- <div id="zhyw_xcgzfgl" class="mini-datagrid" style="height: 100%;" data-options="{canImport:true}"
- allowCellEdit="true" allowCellSelect="true" multiSelect="true"
- idfield="Id" allowresize="true" allowcelledit="true" allowcellselect="true" oncellcommitedit="OnCellCommitEdit"
- oncellbeginedit="OnCellBeginEdit" >
复制代码- <div field="gg" headeralign="center" width="150">规格<input property="editor" class="mini-combobox" data="aaa" valueField="id" textField="text" style="width: 100%;" /></div>
-
复制代码- var aaa = [];
- function OnCellBeginEdit(e) {
- var grid = e.sender;
- var record = e.record;
- var field = e.field, value = e.value;
- if (field == "gg") {
- aaa = [{ id: '162', text: '162' }, { id: '163', text: '163' }, { id: '170', text: '170' }, { id: '175', text: '175' }, { id: '180', text: '180' }, { id: '185', text: '185' }, { id: '190', text: '190' }, { id: '195', text: '195'}];
- }
- }
复制代码 怎么不管用
我是参照这个弄的,是我改变了aaa的值之后还要执行什么刷新之类的操作么
http://www.miniui.com/demo/#src=datagrid/celllinkedit.html
|
|