我想在一个JQueryDataTable的列上绑定另一个JQueryDataTable,点击与Ajax相同的页面。这是我的两个JQueryDataTables的代码。
并且在开始时我想要第二个表格显示“无数据”,直到第一个表的列点击。请指导我
<script type="text/javascript">
$(function () {
function DrawTable() {
var props = null;
BindDataTable({ AllowPaging: true, ShowFilter: false, ShowEditLink: true, EmptyTableText: 'No Data Found', SortIndex: 0, SortDirection: "asc" },
"#tblQueues",
"@Url.Action("GetAllQueues", "Queue")",
props,
[{ name: "Id", cellClass: "alignCenter", Sortable: true, index: 0 }, { }],
[{ name: "Id", type: "anchor", title: 'queueTable', DisplayPropName: 'Name', viewtitle: 'View', link: '@Url.Action("QueueTickets", "Queue")', index: 0 }]);
}
DrawTable();
});
</script>