我有一个html表,正在切断超过200的所有行。这些行实际上就在那里,因为如果我搜索它,list.js javascript搜索功能会在其中找到数据,但是当表加载时它们不会显示。
这是bootstrap中的限制或设置还是其他一些html的东西?
更新 - 这是该表的简化版本。 此外,我在此页面上使用的与表交互的javascript库是list.js和treetable.js。
我会注意到我在我开发的另一个应用程序上看到了这个问题,但99%的时间它不是一个问题所以它从未得到解决。在这个有问题的应用程序中,它几乎总是一个问题。
<div class="table">
<div class="table-responsive" id="table3div">
<table class="table table-hover table-condensed tablesorter" id="table3">
<thead>
<tr>
<th>
<div class="checkbox custom-control custom-checkbox">
<label>
<input type="checkbox" id="checkAlltable3" />
<span class="custom-control-indicator"></span>
</label>
</div>
</th>
<th class="header">Description</th>
<th class="header">Status</th>
<th class="header">Associated With</th>
<th class="header">Assigned To</th>
<th class="header">ID</th>
<th class="header">Type</th>
<th class="header headerSortDown">Due Date</th>
</tr>
</thead>
<tbody class="list">
@for (int i = 0; i < Model.IssuesAndNotes.Count; i++)
{
<tr>
<td>
<div class="checkbox custom-control custom-checkbox">
<input id="checkBox" type="checkbox">
</div>
</td>
<td class="description">
Some data
</td>
<td class="status">
Some data
</td>
<td class="association">
Some data
</td>
<td class="assignedTo">
Some data
</td>
<td class="issueId">
Some data
</td>
<td class="type">
Some data
</td>
<td class="date">
Some data
</td>
</tr>
}
</tbody>
</table>
</div>
答案 0 :(得分:1)
list.js中的默认限制为200,您可以修改参数https://github.com/javve/list.js#parameters
中的限制有关说明,请查看页面选项http://listjs.com/api/
上的API文档