dhtmlxgrid: Header filters are shown in printableView

When I call printableView on a grid with filters in the header, then empty filters are shown in the printableView, no matter what the filter settings was on the grid before printing.



Is it possible to get a printableView without showing the header filters?



Best regards,

Mikkel

You can disable printing of additional headers by changing in the dhtmlxgrid_nxml.js. Try to comment the following lines in the printView() method (lines 375-385):

/
    for (var i=2; i<this.hdr.rows.length; i++){
              if (_isIE){
                  html+="";
                  var cells=this.hdr.rows[i].childNodes;
                  for (var j=0; j < cells.length; j++)
                      if (!this._hrrar || !this._hrrar[cells[j]._cellIndex]){
                          html+=cells[j].outerHTML;
                      }
                  html+="";
                  }
              else
                html+=""+(this._fake?this._fake.hdr.rows[i].innerHTML:"")+this.hdr.rows[i].innerHTML+"";
        }
/