Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkbox selection retention across multiple pages

 
siva saran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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..
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[edit]Nevermind, misunderstood the question.[/edit]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are the multiple pages being fetched?

Eric
 
siva saran
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic