Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by John Ganon on Nov 21, 2007 01:07
open dhtmlx forum
Serialization. Is there a way to omit branches that were opened but no checkboxes were checked. (Include only branches with checked checkboxes). Thank you.

Answer posted on Nov 21, 2007 02:08
Such functionality can be achieved only by code modification, please check
    dhtmlxgrid.js, line 2786

            if (0!=id)
                str.push(self._serializeRow(self.rowsAr[id],i));
            // next line need to be added to include only checked branches
            if (this.cells(id,INDEX).isChecked()) 
            for(var i=0; i<z.childs.length; i++)
                str.push(f(z.childs[i].id,f));
Answer posted by John Ganon on Nov 21, 2007 15:30