Hi,
I use the group function to load xml between js and php.
dhxGrid.loadXML("lib/get_attendance_all.php?str=a1", function() {
dhxGrid.groupBy(0);
});
Now. I want to hide the cell value in php.
echo ("<row id='".$row[$i]."'>");
print("<cell bgColor='#ffffbf' type='hidden'>".$tempname."</cell>");
print("<cell bgColor='#ffffbf'></cell>");
print("</row>");
But it appear the error on dhtmlxgrid_group.js and line 25.
please help
thank you
error.rar (15.6 KB)
Unfortunately your issue cannot be reconstructed.
Please, provide exact steps to reproduce the issue with any kind of sample of your code.
hi ,
thank you for your reply.
this is the demo.rar
when I change the line 48 → " type = ‘hidden’ " in get_admin_group.php, it appear this error,but it can not use " hidden=“true” " to hide the value. I don’t know how to hide the value.
please help
demo.rar (850 KB)
Unfortunately it’s not available to hide the value of a cell. Only the whole row can be hiiden.
Also, you will have to hide the row in a script:
mygrid.setRowHidden(id,true);
But you may create a custom exCell type.
Here is the example:
function eXcell_hidden(cell){ //excell name is defined here
if (cell){ //default pattern, just copy it
this.cell = cell;
this.grid = this.cell.parentNode.grid;
}
this.setValue=function(val){
this.setCValue(""); //actual data processing may be placed here, for now we just set value as it is
}
}
eXcell_hidden.prototype = new eXcell; // nest all other methods from base class