Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Narendra gogineni on Oct 23, 2009 00:41
open dhtmlx forum
Regarding master_checkbox in the header is coming as a default checked if u dont have any rows in the grid.

Answer posted by Alex (support) on Oct 23, 2009 03:08

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.