Check Box for Group on DHTMLX Grid - group-linked-checkboxes

Hi All,

Could you please help on displaying the check box for each group (group-linked-checkboxes).

I am using below piece of code for the grouping, but able to display group only.

mygrid.setColTypes("ch”); // allowing check boxes for group content data only.
mygrid.groupBy(1);
mygrid.expandAllGroups();
mygrid.customGroupFormat=function(name,count){
return name;
}

Please let me know DHTMLX API to get group check box (group-linked-checkboxes) and to get checked group ids.

Thanks,
Suresh

Unfortunately dhtmlxGrid doesn’t have group-linked-checkboxes functionality.

Thanks for response…

Added the group check box manually on customgroupformat method of DHTMLX. But on click of the corresponding check box its taking the expand/collapse functionality event. Any one suggest how to control this event on check/uncheck of the check box.

Thanks
Suresh.

You should cancel “onclick” event bubbling on checkbox at grouped row.

how can i cancel that?

10x in advance

would you share how you added a checkbox for a group ?

You may use the customGroupFormat method.
For example:

mygrid.customGroupFormat = function(text, count){ return text +"<input onclick='(arguments[0]||window.event).cancelBubble=true' type='checkbox'>" }