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 issue when search. #28

Open
shihasck opened this issue Sep 8, 2016 · 2 comments
Open

Pagination issue when search. #28

shihasck opened this issue Sep 8, 2016 · 2 comments

Comments

@shihasck
Copy link

shihasck commented Sep 8, 2016

Once I search for some keyword and If it is more than per_page, Its not showing the pagination link below the table. But I can go to the next page through URL.

http://www.example.com/admin/posts/2

@kishor10d
Copy link

@shihasck : Hello, you need to submit the page using jquery.

Just code like this

jQuery(document).ready(function(){
     jQuery('ul.pagination li a').click(function (e) {
            e.preventDefault();            
            var link = jQuery(this).get(0).href;            
            var value = link.substring(link.lastIndexOf('/') + 1);
            jQuery("#searchList").attr("action", baseURL + "userListing/" + value);
            jQuery("#searchList").submit();
    });
});

Or you can follow the link of the library :
Just another codeigniter admin panel with the solution of this issue

@abojaddou
Copy link

u can use jquery pagination, it have search and pagination for the whol data givin, and there is one from bootstrap and those really cool

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

3 participants