1、冻结列
fitColumns: false,
frozenColumns: [[
{
field: 'id',
title: '编号',
sortable: true,
width: 100,
checkbox: true,
},
{
field: 'user',
title: '帐号',
width: 100,
editor: {
type: 'validatebox',
options: {
required: true, //属性
}
},
},
]],
columns: [[
{
field: 'email',
title: '邮件',
width: 100,
editor: {
type: 'validatebox',
options: {
required: true,
validType:'email',
}
},
},
{
field: 'date',
title: '注册时间',
editable: false,
width: 100,
editor: {
//type: 'datebox',
type: 'datetimebox',
options: {
required: true,
},
},
},
]],
2、行右键菜单
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title></title>
<script src="~/easyui/jquery.min.js"></script>
<script src="~/easyui/jquery.easyui.min.js"></script>
<script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
<link href="~/easyui/themes/gray/easyui.css" rel="stylesheet" />
<link href="~/easyui/themes/icon.css" rel="styleshe