Hide Header node

Hi,

is it possible to hide Header node in the gantt chart? 

Best regards
Gian Piero Truccolo

1 Reply 1 reply marked as answer

VR Vignesh Ramesh Syncfusion Team April 7, 2021 01:47 PM UTC

Hi Gian Piero Truccolo, 

Greetings from Syncfusion. 

We can achieve your requirement by collapse the header node from its Style. Please find the code snippet below 

[XAML] 

<Style x:Key="HeaderNode" 
       TargetType="chart:HeaderNode"> 
    <Setter Property="Visibility" 
            Value="Collapsed" /> 
    <Setter Property="MaxHeight" 
            Value="24" /> 
 
</Style> 
 
<sync:GanttControl x:Name="Gantt" 
                   > 
    <sync:GanttControl.TaskAttributeMapping> 
         
    </sync:GanttControl.TaskAttributeMapping> 
    <sync:GanttControl.Resources> 
        <Style BasedOn="{StaticResource HeaderNode}" 
               TargetType="chart:HeaderNode" /> 
    </sync:GanttControl.Resources> 
</sync:GanttControl> 

Please find the sample from the below link 

Output: 
 

To know about custom node style. Please refer the below user guide link 

Please let us know if you have any queries. 

Regards, 
Vignesh Ramesh. 


Marked as answer
Loader.
Up arrow icon