• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Struts2-Jquery Grid.

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic