• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Checkbox selection retention across multiple pages

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a popup with pagination.IN the popup i can display 20 records each with a checkbox.I can select 5 records from here , 5 from next page and 5 more other page .So the total must be 15.Similarly I can remove and the size should change dynamically.Can I get a sample solution.I did a code but it was bulky and slow.Also there were problems while removing the records by de-selecting the checkbox.Any solution which is faster and more dynamic is welcome..
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[edit]Nevermind, misunderstood the question.[/edit]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are the multiple pages being fetched?

Eric
 
siva saran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Pascarello wrote:How are the multiple pages being fetched?

Eric



Well we are making a call to the database to fetch the records whenever the next>> is clicked.Then we cache the records in a session so that in case the user uses the prev<< we can reload from the session instead of making a call to the database. We use the last record in the page a scrollkey to our DB to fetch the next set of records.Hope this helps
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When the page is posted back, you need to store what checkboxes were checked and hold that in session too.

Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic