Categories | Question details Back To List | ||
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 Answer posted by Support on Oct 22, 2008 08:20 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+="<tr style='background-color:lightgrey'>"; 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+="</tr>"; } else html+="<tr style='background-color:lightgrey'>"+(this._fake?this._fake.hdr.rows[i].innerHTML:"")+this.hdr.rows[i].innerHTML+"</tr>"; } */ |