Hello,
by default the master checkbox isn’t checked.
In order to check it you can use the following method:
var mch = grid.hdr.rows[2].cells[COLUMN_INDEX].getElementsByTagName(“INPUT”)[0];
mch.checked=true
Where COLUMN_INDEX is index of the column with checkbox.