error in export of Treetable with grouping

Hi,

When I export a treetable with grouping, i get

<div class='webix_tree_folder'...

instead of the group name. Rest of the rows within the group are displaying correctly.

With Regards
Ashok

You can set exportAsTree property for tree column

columns:[
  { id:"acol", template:"{common.treetable()} #value#", exportAsTree:true }

Hi,

Still the same problem. My code:

                           columns:[
                                { id:"Tagname",width:150, sort:"string",
                                  template:function(obj, common){
                                              if (obj.$group) return common.treetable(obj, common) +  obj.Tagname;
                                              return '';},exportAsTree:true},

With Regards
Ashok

The same code works for me.
Are you using Webix 1.7 or some older version ?

Hi, I was using 1.6. Thanks. Works now

With Regards
Ashok

hmm, when i use the default exportToExcel() without specifying the path to generate.php the generate library you are hosting honors the exportAsTree flag. However when I point it to generate.php on my server, there is no indentation for tree child items. The php library i’m using was downloaded from this path http://docs.webix.com/packages/export/grid-excel-php.zip

Yes you are right.
The online version is based on Java and PHP version somehow missed the TreeGrid related code. I will update the php package in next few days.

Thanks, maksim.

I modified the gridExcelGenerator.php and gridExcelWrapper.php in the mean time to give the same functionality. Here’s the modifications in case anyone needs it before the php package is officially updated. http://pastebin.com/mqf55N2F