如何在Ajax调用上绑定JQueryDataTable

时间:2015-07-14 08:54:03

标签: jquery ajax datatables

我想在一个JQueryDataTable的列上绑定另一个JQueryDataTable,点击与Ajax相同的页面。这是我的两个JQueryDataTables的代码。 并且在开始时我想要第二个表格显示“无数据”,直到第一个表的列点击。请指导我 enter image description here

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

0 个答案:

没有答案