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

GridClientSelectColumn check all

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dhuss
Top achievements
Rank 1
dhuss asked on 03 Dec 2010, 12:45 AM
I have a grid that has x number of records on page 1. On page 2 there is a single record. If I check the single record on page 2, the header "All" checkbox also checks itself. If there anyway to prevent this? I only want the "All" checkbox to be checked when I actually check it.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Dec 2010, 06:45 AM
Hello,


This behaviour is expected and the header CheckBox will be checked when all items in the page (even if there is single item). So if you want to customize/ change behaviour based on requirement, then use custom column with CheckBox in HeaderTemplate. And perform the required functionality explicitly from client side.

Following links will be helpful:
Getting familiar with client-side API
selectAllItems()
clearSelectedItems


-Shinu.
Tags
Grid
Asked by
dhuss
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or