angular-footable icon indicating copy to clipboard operation
angular-footable copied to clipboard

Pagination not working

Open bobmulder opened this issue 10 years ago • 7 comments

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

bobmulder avatar Aug 26 '15 15:08 bobmulder

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.

surnetworks avatar Aug 31 '15 05:08 surnetworks

same issue for me too.. anyone have a solution?

geo-gar avatar Sep 07 '15 19:09 geo-gar

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 avatar Sep 07 '15 20:09 surnetworks

@surnetworks I add a setTimeout to make sure that redraw after ng-repeat

setTimeout(function() {$('#tblOrders').trigger('footable_redraw');}, 1000)

xwendotnet avatar Jan 05 '16 10:01 xwendotnet

Same here, @xwendotnet solution worked.

wggley avatar Jan 20 '16 17:01 wggley

This solution worked here also, @xwendotnet

wsyssantos avatar Jan 20 '16 17:01 wsyssantos

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/

docsa avatar Mar 11 '18 00:03 docsa