my dog learned polymorphism
The moose likes Struts and the fly likes Struts2-Jquery Grid. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2-Jquery Grid." Watch "Struts2-Jquery Grid." New topic

Struts2-Jquery Grid.

Suresh Ganti

Joined: Jun 12, 2011
Posts: 11

Can anyone suggest me the solution for the below problem.
I want to display 15 records in my grid each time.
When ever I want to retrive some records from the database and display in the grid I am having two problems.

1. When I try to retrive all the records at once and keep it in the Grid using load once property the grid hangs on if the record count is more than 10000.
2. If I use server side pagnation. Its difficult to hit the database so many times to revrive 10/15 records. Its more costlier.

At last I come up with a solution. If there are 10000 records to display I want to retrive 1000 records each time when I hit the database and keep in the Grid to display 15 records each time. After that next 1000 records and so on till 10000 records. So that I can avoid both the concerns mentioned above. How this can be possible using Struts2-Jquery Grid.

Please suggest me a solution.

Alberto Zolezzi

Joined: Dec 13, 2010
Posts: 9
hi Suresh,
if I understand your problem, I would take a look at this example, it might help you:

Here you can find the War with the code.


A man who works with his hands is a laborer; a man who works with his hands and his brain is a craftsman; but a man who works with his hands and his brain and his heart is an artist. Louis Nizer.
I agree. Here's the link:
subject: Struts2-Jquery Grid.
It's not a secret anymore!