• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 498
  • Last Modified:

how to maintain checked and unchecked results in pagination

i want to implement paging;results will come from DB;IN EVERY PAGE  i should display  10 records;each record has checkbox;in the first page i checked 5 records and in the next page i checked another 5 records and i navigate between first page and second page the checked and unchecked results should be populated.how to proceed this??how to maintain checked and unchecked results.can i anybody provide pseudo code??
0
chaitu chaitu
Asked:
chaitu chaitu
1 Solution
 
bloodredsunCommented:
Just store the results in the session and check for them when you output the checkbox.

A better way would be with Ajax but that may be a little advanced for this.
0
 
jaggernatCommented:
keep the form-bean(which holds the field values including checkbox values) in session . that will maintain state of all your checkboxes though out the session while you switch pages.For table you can use Display table tag.
Nice n Easy.

http://displaytag.sourceforge.net/11/
0
 
chaitu chaituAuthor Commented:
how to maintain checked and unchecked results;;
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
jaggernatCommented:
if form-bean is in session, it will automatically maintain checked and unchecked results
0
 
chaitu chaituAuthor Commented:
I have not this form-bean before;can u  provide some examples how to use this??
0
 
chaitu chaituAuthor Commented:
used this form-bean before;;;
0
 
chaitu chaituAuthor Commented:
we need to implement this kind of paging in so many places, so please tell me how to use form-bean and provide some examples.
0
 
chaitu chaituAuthor Commented:
here main thing we shouild remember is  when  user checks 1 record or 2 , 3 records  first it should remove from the unchecked results and then it should add into checked results and vice-versa.
0
 
chaitu chaituAuthor Commented:
the example u priovide is not much elaborative?

i want this kind of functionality.

http://www.common-controls.com/cc2/listcontrol/sample107/userRightsBrowse.do
0
 
DarthModCommented:
PAQd, 500 points refunded.

DarthMod
CS Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now