This is a migrated thread and some comments may be shown as answers.

[Solved] Select all rows in client-side when paging?

2 Answers 209 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thai Thuong
Top achievements
Rank 1
Thai Thuong asked on 21 Jan 2010, 03:55 AM
Hello,
I use a GridClientSelectColumn in my grid. I set AllowPaging = "True", then click checkbox at column header, only items of current page have been selected. Can I select all items of all page when i clicking the Checkbox at header column?
Tks for helping, sorry for my bad english!

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 Jan 2010, 05:27 AM
Thai,

You can achieve this by disabling the paging temporarily and then loop through all the items to select them, after which you can enable paging back again.

Also the following forum link discuss on a similar issue as yours.
How to preserve the state of the rows selected during traversal to other pages

-Shinu.
0
Thai Thuong
Top achievements
Rank 1
answered on 21 Jan 2010, 08:43 AM
Hi Shinu,
Thank you for helping. Now, i have some ideas for achieving this, but i need get  state of the checkbox at header. Can you help me get state (checked) of checkbox at header in Client-side?
Tags
Grid
Asked by
Thai Thuong
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Thai Thuong
Top achievements
Rank 1
Share this question
or