Keep end date also with zoom

Hi,

when i zoom i lose EndTime i have set.

Is it possible to keep it also if i change the zoom?

Best regards
Gian Piero Truccolo

3 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team June 11, 2021 12:05 PM UTC

Hi Gian Piero Truccolo,

Greetings from Syncfusion.

We would like to inform that, the StartTime and EndTime properties will not be consider once the Gantt get zoomed, ScheduleRangePadding property only considered. So, you can achieve this requirement by loading the Gantt with ZoomFactor as 101 and ScheduleRangePadding as 1. Hereafter, the same start and end time will be maintained while loading and zooming the Gantt. Please find the snippet below
 
  
 
<StackPanel Orientation="Horizontal" 
            HorizontalAlignment="Left"> 
    <TextBlock Text="ZoomFactor : " /> 
    <Slider x:Name="zoomSlider" 
            Value="101" 
            Width="200" 
            Minimum="101" 
            Maximum="200" /> 
    <TextBlock Text="{Binding ElementName=zoomSlider, Path=Value}" /> 
</StackPanel> 
  
<gantt:GanttControl x:Name="Gantt" 
                    Grid.Row="1" 
                    GridWidth="0" 
                    VisualStyle="Metro" 
                    ItemsSource="{Binding TaskDetails}" 
                    ScheduleType="CustomDateTime" 
                    CustomScheduleSource="{Binding CustomSchedule}" 
                    ScheduleRangePadding="1" 
                    ZoomFactor="{Binding ElementName=zoomSlider, Path=Value, Mode=OneWay}"> 
</gantt:GanttControl> 
 

Please let us know if you have any concerns.

Regards,
Sridevi S.
 
 


Marked as answer

GI Gian June 11, 2021 12:15 PM UTC

Hi,

thanks.
Regarding "ScheduleRangePadding" is it possible to set only from one side?

Best regards
Gian Piero Truccolo


SS Sridevi Sivakumar Syncfusion Team June 14, 2021 10:17 AM UTC

Hi Gian Piero Truccolo,

Query: Regarding "ScheduleRangePadding" is it possible to set only from one side?

No, ScheduleRangePadding will be applied for both Start and FinishDate. It is not possible to apply for one side.

Let us know if you need any further assistance.

Regards,
Sridevi S.  
 


Loader.
Up arrow icon