【发布时间】:2018-12-20 09:55:06
【问题描述】:
我在 Razor 视图中有简单的 HTML 表格
<table id="grid" class="table table-condensed table-hover table-striped">
<tr>
<th data-column-id="Detail">
Detail
</th>
<th data-column-id="Client_Ref">
Client Ref
</th>
<th data-column-id="Acc">
Acc
</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.ActionLink(" ", "Detail", new {
id = item.KeyOfTransaction},
new { @class = "btn btn-default glyphicon glyphicon-book" })
</td>
<td>
@Html.DisplayFor(modelItem => item.Client_Ref)
</td>
<td>
@Html.DisplayFor(modelItem => item.Acc)
</td>
</tr>
}
</table>
当我应用 JQuery Bootgrid 时,只显示搜索字段,但整个表变为空
@section Scripts {
<script>
$(document).ready(function () {
$("#grid").bootgrid();
})
</script>
}
有人知道这里有什么问题吗?我需要过滤数据,对其进行排序并执行此插件提供的所有其他操作
【问题讨论】:
标签: jquery asp.net-mvc razor jquery-bootgrid