I have a grid in which I have added headerCheckbox to get the functionality of Select/Deselect All. Also added checkchange event to the check
headerCheckbox
checkchange
check