Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I have a DataGrid with paging property enabled and its page size is 10 so totally 5 pages.DataGrid contains Checkbox per row.If i choose Select All checkbox,i can select only displaying checkboxes in current page that is 10 checkboxes in that page remaing 4 pages checkboxes are in unselected condition.My scenario is if i choose select all in 1st page, Checkbox in Every page of the DataGrid should be selected.I want to do it in query or javascript...

Thanks in Advance :-)

What I have tried:

I have tried in javascript initially later in jquery but no use.
Posted
Updated 6-Mar-16 23:25pm

1 solution

To do that,

Load all the data on page and control paging through jQuery. If all the data rendered on page then you can easily find the rendered control and select all will work fine through - find all input with type checkbox and loop through them and select.

Thanks,
 
Share this answer
 
Comments
Maniraj.M 7-Mar-16 5:47am    
Can u provide some code?how to control paging through jquery?
Parveen Siwach 7-Mar-16 11:03am    
Refer these links:

http://esimakin.github.io/twbs-pagination/

http://www.jqueryrain.com/2012/04/best-ajax-jquery-pagination-plugin-tutorial-with-example-demo/

http://botmonster.com/jquery-bootpag/#.Vt2mB9Bj9SF

Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900