Jquery Datatable Searching and paging not working
Jquery Datatable Searching and paging not working
Bhargav Prasanth
Posts: 2Questions: 1Answers: 0
Iam using Jquery data tables with Jquery templates.
while the data is binding to table but searching and paging not showing even iam specified conditions.
Iam using following code.
<script src="~/Content/assets1/js/jquery-1.11.0.min.js"></script>
<link href="~/Content/DataTable/datatables.min.css" rel="stylesheet" />
<script src="~/Scripts/DataTable/datatables.min.js"></script>
<script src="~/Scripts/TemplateScripts/jquery.tmpl.js"></script>
function Bindtable(data) {
var appRoleList = data.response;
if (appRoleList.length > 0) {
$("#tblUsers").DataTable().destroy();
$("#scriptUserInfo").tmpl(appRoleList).appendTo("#tbodyUsers");
var mast_table = $('#tblUsers').DataTable();
var appRoleTable = mast_table.dataTable({
"pageLength": 5,
"bSort": false,
"bPaginate": true,
"bLengthChange": false,
"bFilter": true,
"bInfo": false,
"bAutoWidth": false
});
}
}
This discussion has been closed.
Answers
Hi All,
The problem is resolved.
mismatch of count i have in header <th></th> and in tbody