Hi,

Can we retain multiple checkbox selection upon refresh or using pagination for few hundred records? There is a page where user sees all the items which has search box on the field column to perform searches and select items using checkbox besides those items. While searching the items page result changes and previous selected value is lost. Also the selection is lost when I use the pagination link below the result.

Any Solution?

Recommended Answers

All 2 Replies

You should either use Ajax to send the selection data back to the server and then just "refresh" the part of the page that has the results so that the entire page doesn't reload. Or use a form submit and include the checkboxes in the form. When the form submits you will have the current checkbox values and will be able to set them as checked when they are drawn.

Thanks for your suggestion. I am using Ajax now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.