使用 datagrid插件,生成的结果是这样的:
现在需要隐藏或怎么去掉上面的“新出现工单”,只保留下面的数据:
对应的JS代码:
function DateNew(urlnew){
$('#newList').datagrid({
url: urlnew,
height:50,
fitColumns:true,
singleSelect:false,
queryParams : {
"comModel.startTime":$('#startDate').val(),
"comModel.endTime":$('#endDate').val()
},
columns:[[
{field:'ya',title:'新出现工单',width:50,sortable:true}
]]
});
}
对应的JSP 代码:
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="50">
<tr>
<td height="25px" width="">
<div id="NewDiv" style="width:50%;float:left;">
<table id="newList" width="45%"></table>
</div>
</td>
</tr>
</table>