Hi everyone,
I’m trying to use some dhx_grid features to have a good display in my grid. Here is a portion of my code:
myGrid.loadXML("src.php",
function(){
var tmpData = {some json string given by a php file};
tmpData = eval('('+tmpData+')');
//some cells operations
}
);
myGrid.customGroupFormat = function(text){ return text };
myGrid.groupBy(0);
myGrid.setColumnHidden(0,true);
myGrid.collapseAllGroups();
The “src.php” returns a xml used only for the header
Here are the issues I encountered :
-
The “collapseAllGroups” function doesn’t work at all.
-
I wanted to use a “splitAt” function for a better displaying, but apparently, even if splitting a hiden column doesn’t seem to bother the API, trying to split a grouped column messes with the displaying. Will it work if I put my grouped (and hidden) column at the end ?
-
The grouped text is to long for the cell width, even using the “customGroupFormat” function, witch I used simply to display the value grouped (and not the number of occurrences). I would like to span the display, so that even if the text is much longer, it won’t be cut off. How do I do that?
Regards,