代码如下:
<tr>
<th data-options="field:'HName',title:'节假日名称',width:100,halign: 'center',editor:{type:'text',options:{required:true}}"></th>
<th data-options="field:'HBeginDate',title:'开始日期',width:100,halign: 'center',editor:{type:'datebox',options:{required:true}}"></th>
<th data-options="field:'HEndDate',title:'截止日期',sortable:true,width:100,halign: 'center',editor:{type:'datebox',options:{required:true}}"></th>
<th data-options="field:'IsState',title:'状态',align:'center',halign:'center',width:100,formatter:HolidayIsState"></th>
<th data-options="field:'operate',title:'操作',formatter:operateFormatter,width:100,align:'center'"></th>
</tr>
效果如下: