File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2-Jquery Grid." Watch "Struts2-Jquery Grid." New topic
Author

Struts2-Jquery Grid.

Suresh Ganti
Greenhorn

Joined: Jun 12, 2011
Posts: 11
Hi,

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.

Thanks,
Suresh.
Alberto Zolezzi
Greenhorn

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:
showcase

Here you can find the War with the code.

Alb


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: http://aspose.com/file-tools
 
subject: Struts2-Jquery Grid.
 
Similar Threads
Struts2/JQuery
struts2 + Json and JQuery.
(Struts2 -Jquery) Display data in a Grid after submitting a form.
Pagination in struts2
struts2-jquery-plugin's tabbedpanel problem