easyui datagrid 问题,如何隐藏标题栏?

使用 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>

第1个回答  2015-04-01
var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});本回答被提问者和网友采纳
相似回答