jQuery MiniUI
标题:
DataGrid动态联动
[打印本页]
作者:
gaofq
时间:
2021-11-4 18:18:43
标题:
DataGrid动态联动
本帖最后由 gaofq 于 2021-11-4 18:21 编辑
<div id="CustomerService" style="width:1224px;height:200px;" class="mini-datagrid" showPager="false" url="../Customer/GetCustomerServiceListByID">
<div property="columns">
<div type="indexcolumn"></div>
<div name="action" width="120" headerAlign="center" align="center" renderer="onActionRenderer" cellStyle="padding:0;">操作</div>
<div type="comboboxcolumn" field="EmployeeID" width="130" allowSort="true" align="center" headerAlign="center">
姓名
<input property="editor" class="mini-combobox" style="width:100%;" url="/CommonEnum/GetAEmployeeList" allowInput="true" onvaluechanged="onNameChanged" />
</div>
<div type="comboboxcolumn" field="DeptID" width="150" allowSort="true" align="center" headerAlign="center">
部门
<input property="editor" class="mini-treeselect" url="../CommonEnum/MiniuiLandrayDeptALL" allowInput="true" style="width:100%;" />
</div>
<div type="checkboxcolumn" field="IsPending" trueValue="true" falseValue="false" width="60" headerAlign="center">档案受理</div>
<div type="checkboxcolumn" field="IsWarn" trueValue="true" falseValue="false" width="60" headerAlign="center">预警管理</div>
<div type="checkboxcolumn" field="IsDormancy" trueValue="true" falseValue="false" width="60" headerAlign="center">休眠客户</div>
<div type="checkboxcolumn" field="IsContract" trueValue="true" falseValue="false" width="60" headerAlign="center">合同管理</div>
<div type="checkboxcolumn" field="IsOutboundDocumentary" trueValue="true" falseValue="false" width="60" headerAlign="center">出港跟单</div>
<div type="checkboxcolumn" field="IsCityDocumentary" trueValue="true" falseValue="false" width="80" headerAlign="center">进港市内跟单</div>
<div type="checkboxcolumn" field="IsTransferDocumentary" trueValue="true" falseValue="false" width="60" headerAlign="center">中转跟单</div>
<div type="checkboxcolumn" field="IsVisit" trueValue="true" falseValue="false" width="60" headerAlign="center">上门拜访</div>
<div type="checkboxcolumn" field="IsCallBack" trueValue="true" falseValue="false" width="60" headerAlign="center">客户回访</div>
</div>
</div>
复制代码
//选择姓名后加载部门
function onNameChanged(e) {
debugger;
var id = e.value;
var grid = e.sender;
var record = e.record;
getCellEditor(column, row)
//grid.updateRow(record, { DeptID: "16cfa261728def8ad8851b8432cb41e3" });
//$.ajax({
// type: 'post',
// url: "../Customer/GetLandrayPersonDeptIDByEmployeeID",
// data: { ID: id },
// success: function (result) {
// //mini.alert(result);
// grid.updateRow(record, { DeptID: result });
// },
// error: function (jqXHR, textStatus, errorThrown) {
// alert(jqXHR.responseText);
// }
//});
}
复制代码
如何实现姓名列的
onvaluechanged改变时,刷新右边的部门?
作者:
felt
时间:
2021-11-5 14:00:33
http://www.miniui.com/demo/#src=datagrid/celllinkedit.html
参考联动编辑的示例
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2