Using groupBy, setColumnHidden and splitAt

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 :

  1. The “collapseAllGroups” function doesn’t work at all.

  2. 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 ?

  3. 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,

Unfortunately the issue cannot be reconstructed. Please, open ticket at support@dhtmlx.com if issue still occurs

2. I wanted to use a "splitAt" function for a better displaying, but apparently, even if splitting a hidden 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 ? 3. 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?

Please, try to use the second attribute of groupBy method to customize the displaying of your group.
For example:

mygrid.groupBy(0,["","#cspan","#title","#cspan","#cspan","#cspan","#cspan","#cspan"]);

Note:
Please, try to display “#title” in the right side of a split, and avoid displaying it in the hidden column.