Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Peter Hoppen on Jun 26, 2009 04:00
open dhtmlx forum
Check box does not show up in a new row (added with addrow) in a grid

I have a grid with 4 columns with editor type / coltype 'ch' (check box).
If I add a new row to the grid with addrow, the check boxes do not appear.
For existing data, the checkbox columns work fine, i.e. they display data properly and changes are also saved.
Answer posted by dhxSupport on Jun 26, 2009 04:22
You should use 2nd addRow() parameter to set check box value. Only after that check box will be rendered in the added row. 
grid.addRow(newId,"text1,0",row_index);
or
 grid.addRow(newId,["text1","0"],row_index);