Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sriram on Jul 10, 2009 06:24
open dhtmlx forum
Grid + MasterCheckbox

Hi,

I have a grid with a master check box. I am submitting only the changed rows to the server side for processing. It works fine if the individual check box state is changed (either from checked to unchecked or the reverse). But the problem occurs with the master check box. If I change the state of the master check box then mygrid.getChangedRows(0) is returning false indicating that there are no changed rows. Please provide a solution for this.

thanks,
sriram.
Answer posted by dhxSupport on Jul 10, 2009 09:06
To fix this issue please include attached file to your page 
Attachments (1)
Answer posted by sriram on Jul 13, 2009 00:05
hi,

Thanks for the attachment and its working fine now. But there is one more problem. When the grid is loaded, if all the check boxes are in checked state then the master check box should also be in checked state, but at present, it's not. What should I do for that? Is there any predefined functionality or should I have to use a custom one?

Thanks,
sriram.
Answer posted by dhxSupport on Jul 13, 2009 07:50
>>When the grid is loaded, if all the check boxes are in checked state then the master check box should also be in checked state
Current version of master_checkbox doesn't support such functionality. You can implement custom header|footer shortcut. Please see more information here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid