my problem is when the page opens it displays the current year holidays with paging numbers everything is correct but when i click search button its work to show all year holidays but it shows 10 records in 1st pagination linkpage as correct but when i click 2 pagelink it shows the result given by current year holidays (not expected). why? source please
Quick guess is that when you click search, you send POST data to the controller. When you later click on the pagination links, this POST data is not sent again, links do not do that.
As I had a trouble of combination of search functionality and pagenation as well, I was able to find the solution such that I have displayed in the post.
That’s it. Even though this is a very small piece of code, I think it is worth registering it as a page of the cookbook. BTW, I wish I could do it, but my English ability prevents me from doing it. :’(
I wonder that I made you misunderstand… What I want to say is that this small piece of code is the heart of the algorithm and it is worth for the cookbook. I do not mean that you should show the whole code. If this is my misunderstanding, please never mind! Anyway I am very happy to hear that you have solved the problem.