关于jquery ui datagrid 的问题 在将 datagrid 放在DIV下隐藏显示不出标题栏:详细描述如下图 15
图一:<tr><td><divid="divPreTemp"style="display:none"><tableid="listDisplay1"title="信息"i...
图一:
<tr>
<td>
<div id= "divPreTemp" style= "display: none">
<table id="listDisplay1" title="信息" iconCls="icon-list" singleSelect="true" idField="MISSIONID"
pagination="true" pageSize="20" pageList="[10,20,30,40,50,100,150,200]" rownumbers="true" sortOrder="asc" class=common>
<thead>
<tr>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">姓名</th>
<th field="TEMPFEENO" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">金额</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">方式</th>
<th field="PAYDATE" width="80" formatter="formatDGField" sortable="true">日期</th>
<th field="AGENTCODE" width="80" formatter="formatDGField" sortable="true">业务员 </th>
</tr>
</thead>
</table>
</div>
<div id= "divCustomer" class="easyui-panel" style= "display: none">
<table id="listDisplay2" title="信息" iconCls="icon-list" singleSelect="true" idField="MISSIONID"
pagination="true" pageSize="20" pageList="[10,20,30,40,50,100,150,200]" rownumbers="true" sortOrder="asc" class=common>
<thead>
<tr>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">姓名</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">金额</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">方式</th>
<th field="PAYDATE" width="80" formatter="formatDGField" sortable="true">日期</th>
<th field="AGENTCODE" width="80" formatter="formatDGField" sortable="true">业务员 </th>
</tr>
</thead>
</table>
</div>
</td>
</tr>
根据类型选择的值不同时,显示不同的列表,由于设置了DIV style= "display: none" 造成显示不正确 ,想达到的效果应该为下图
图二: 展开
<tr>
<td>
<div id= "divPreTemp" style= "display: none">
<table id="listDisplay1" title="信息" iconCls="icon-list" singleSelect="true" idField="MISSIONID"
pagination="true" pageSize="20" pageList="[10,20,30,40,50,100,150,200]" rownumbers="true" sortOrder="asc" class=common>
<thead>
<tr>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">姓名</th>
<th field="TEMPFEENO" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">金额</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">方式</th>
<th field="PAYDATE" width="80" formatter="formatDGField" sortable="true">日期</th>
<th field="AGENTCODE" width="80" formatter="formatDGField" sortable="true">业务员 </th>
</tr>
</thead>
</table>
</div>
<div id= "divCustomer" class="easyui-panel" style= "display: none">
<table id="listDisplay2" title="信息" iconCls="icon-list" singleSelect="true" idField="MISSIONID"
pagination="true" pageSize="20" pageList="[10,20,30,40,50,100,150,200]" rownumbers="true" sortOrder="asc" class=common>
<thead>
<tr>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">号码</th>
<th field="CUSTOMERNAME" width="80" formatter="formatDGField" sortable="true">姓名</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">金额</th>
<th field="PAYFEE" width="80" formatter="formatDGField" sortable="true">方式</th>
<th field="PAYDATE" width="80" formatter="formatDGField" sortable="true">日期</th>
<th field="AGENTCODE" width="80" formatter="formatDGField" sortable="true">业务员 </th>
</tr>
</thead>
</table>
</div>
</td>
</tr>
根据类型选择的值不同时,显示不同的列表,由于设置了DIV style= "display: none" 造成显示不正确 ,想达到的效果应该为下图
图二: 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询