Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a grid view which contains nearly 1000 of data with check box.I had select all check box at the header . when user checks on the header of the select all chekbox Through javascript iam looping and checking all the chekbox in the grid.but it is working fine for the 1000 records of data but when it is 5000 then iam getting A script on this page is causing to run slowly.

Hence is there is any solution to check all the checkbox in the grid with out looping .to solve this problem

THanks in advance
Posted
Updated 5-Jun-12 6:52am
v2

Hello

I don't think that there be a better solution. But you can improve the performance. Look here: Javascript for loop issue with large number of elements

By the way: Why do you want to show 1000 or 5000 items simultaneously? use Paging instead.
 
Share this answer
 
Comments
lakshmichawala 5-Jun-12 13:13pm    
hi shahin its a requirement from client to show 5000 instead 1000 since i used pagination for the grid
You should break your grid in multiple pages for this problem & will increase the page performances
 
Share this answer
 
Agree with others & this article is for you.
Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]

Also don't forget to check other articles by that author.
 
Share this answer
 

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