具体还得贴代码出来才知道。下面我贴出我的两个例子
$(datagridId).datagrid({
url: '@Url.Action("GetUsers")',
fit: true,
rownumbers: true,
pagination: true,
singleSelect: false,
pageSize: 10,
pageList: [10, 20, 50],
sortName: "UserID",
sortOrder: "desc",
loadMsg: "数据加载中",
columns: [[
{ field: 'ck', checkbox: true },
{ field: 'UserID', title: 'ID', width: 100, hidden: true },
{ field: 'UserName', title: '账号', width: 100 },
{ field: 'FullName', title: '全名', width: 100 },
{ field: 'EntityName', title: '公司' },
{ field: 'DepartmentName', title: '部门', width: 100 },
{ field: 'Email', title: '邮箱' },
{
field: 'action',
title: '操作',
align: 'center',
formatter: function (value, row, index) {
return '' +
'' +
'';
}
}
]],
toolbar: "#tb",
onDblClickRow: function (rowIndex, rowData) {
$(datagridId).datagrid('unselectAll');
$(datagridId).datagrid('selectRow', rowIndex);
$(dialogId).dialog({ title: "正在编辑:" + rowData.UserName }).dialog("open");
$(formId).form('load', rowData);
}
});
修改'}"> |
---|
问题解决了哥们吗?? 我也遇到这个问题了 求解决方案