Hi ,
Can anyone help me to do pagination in TPL.
Example I have 150 data and I want to show 10 data per page.
Thanks a lot for the help in advance.
Define pagination.
What are you generating? An HTML page? Of you have 150 DCRs adn 10 each page, are you generating 15 different HTML files?
If I were tasked with this, I would use jquery to do the pagination and put it all in 1 HTML page.
Hi Nipper,
Thanks for the response!!!!!
Its kind of index page with .jsp extention. I am loading around 150 DCRs on that page and showing Title and small desciption for all. All I want to have data to be rendered having pagination with 10 max dcr data on one page .
I hope it clarify my requirement.
Thanks
If it is a JSP you can read all of them and do pagination in the page. Like I said, I typically do stuff like that in jquery, but you can use whatever tool you feel comfortable with.
Read all the DCRs (link, title), store them in an array, and use code to display the appropriate 10 depending on where in the pagination you are,