Pagination not working
Hey,
I've added the footable plugin. The basics work including sortable. However, pagination isn't working. When I load the page, pagination is not added. After I click one of the sortable-columns, the order changes, and the pagination is added including the pagination-box (with page-numbers).
How's this possible? Am I the only one here?
Greetz
same issue for me , i dont know how manage this.i guess is because the data is injected after the object was built for this reason the pagination dont know how much items have.
same issue for me too.. anyone have a solution?
I found a solution with this couple lines.
$('#tablate').append(html).trigger('footable_redraw');
where tablate is my grid i put this after the data is loaded and semm like a fast refresh and the paginations works fine
surhosting.com http://surhosting.com Especialistas en Web Hosting [email protected] [email protected] Telefono:1 791 5877 CEL: 99 912 3838
2015-09-07 14:22 GMT-05:00 JorgeCLN [email protected]:
same issue for me too.. anyone have a solution?
— Reply to this email directly or view it on GitHub https://github.com/ziscloud/angular-footable/issues/3#issuecomment-138362718 .
@surnetworks I add a setTimeout to make sure that redraw after ng-repeat
setTimeout(function() {$('#tblOrders').trigger('footable_redraw');}, 1000)
Same here, @xwendotnet solution worked.
This solution worked here also, @xwendotnet
You should write a directive which waits until data is loaded, then runs $('.footable').trigger('footable_redraw');
There is a fully explained post here : https://www.codetutorial.io/angular-jquery-after-render/