Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination not working #3

Open
bobmulder opened this issue Aug 26, 2015 · 7 comments
Open

Pagination not working #3

bobmulder opened this issue Aug 26, 2015 · 7 comments

Comments

@bobmulder
Copy link

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

@surnetworks
Copy link

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.

@geo-gar
Copy link

geo-gar commented Sep 7, 2015

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

@surnetworks
Copy link

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
#3 (comment)
.

@xwendotnet
Copy link

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

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

@wggley
Copy link

wggley commented Jan 20, 2016

Same here, @xwendotnet solution worked.

@wsyssantos
Copy link

This solution worked here also, @xwendotnet

@docsa
Copy link

docsa commented Mar 11, 2018

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants