DataTabler 1.10 is displaying on page but not paginating
DataTabler 1.10 is displaying on page but not paginating
tarnett
Posts: 8Questions: 4Answers: 0
Lower left label showing "Showing 1 to 1 of 1 entries". Page size is set to 10 and there are 14 records in dataset. Am I missing a config somewhere?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Would need to be able to replicate this to fix it.
Can you atleast share the related code? You didnt give much details..
Sorry. I guess that would really help
At the top of my HTML page I have :
$(document).ready(function() { $('#payeeTable').DataTable({ }); });In my markup page, I'm using:
I"m using the bootstrap
<
table> command to display the data:
The results is showing me ALL of the rows, with no pagination. It also displays the following "Showing 1 to 1 of 1 entries".
Any help would be appreciated...
I'm reasonably confident that this is due to the mix of Angular's
ng-repeat
and DataTables. You basically have two different libraries which are trying to control the DOM which is going to lead to conflicts. In this case it sounds like DataTables is initialised before Angular builds its table.If you want to use both at the same time have a look at Angular DataTables - it is third party and something I've not used much myself, but if you want to use both together, you'd need some kind of integration like that.
Allan
Thank you Allan! Works perfectly now.