Hi Giuseppe,
Thanks for contacting Syncfusion support.
We have analyzed your given requirement and we don’t have in-built support to hide TreeGrid header but we can achieve it by workaround to hide TreeGrid header at the client side.
We have to hide the TreeGrid header colgroup & each th element once after rendered it. For that use create event to add the hidden class css property to hide column header of TreeGrid.
Please refer following code snippet,
<style>
.e-hide-col{
display:none;
}
</style>
<ej:TreeGrid ID="Treegrid" Create="create"
</ej:TreeGrid>
function create(args) {
var $colheader = this.getHeaderTable().find('colgroup').find('col'),
$header = this.getHeaderTable().find('tr').find('th');
$($colheader).addClass("e-hide-col");
$header.addClass("e-hide");
} |
We have also prepared a sample for your reference. Please find the sample location as below,
Please let us know, if you require any other assistance.
Regards,
Jayakumar D