Solved

how to maintain checked and unchecked results in pagination

Posted on 2006-11-27
13
465 Views
Last Modified: 2012-05-05
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
Comment
Question by:chaitu chaitu
13 Comments
 
LVL 29

Expert Comment

by:bloodredsun
Comment Utility
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
 
LVL 10

Expert Comment

by:jaggernat
Comment Utility
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
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
how to maintain checked and unchecked results;;
0
 
LVL 10

Expert Comment

by:jaggernat
Comment Utility
if form-bean is in session, it will automatically maintain checked and unchecked results
0
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
I have not this form-bean before;can u  provide some examples how to use this??
0
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
used this form-bean before;;;
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
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
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
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
 
LVL 10

Expert Comment

by:jaggernat
Comment Utility
0
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
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
 
LVL 20

Author Comment

by:chaitu chaitu
Comment Utility
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
Comment Utility
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now