Hi Vangi,
We can achieve your requirement by making use of the Created event. We have also changed the name of the FitToProject method to ZoomToFitAsync since version v19.2.44. The following code snippets demonstrate the solution.
Index.razor
|
public void Created(Object args)
{
this.Gantt.ZoomToFitAsync();
}
|
We have also prepared a sample for your reference.
Please contact us if you require any further assistance.
Regards,
Monisha.