Validating Schedule Dates

Validating schedule dates is used to change the schedule start date and end date dynamically. By this support, ScheduleStartDate and ScheduleEndDate can be automatically updated from the data source. When you change the date of any task item to the date that is beyond ScheduleStartDate or ScheduleEndDate through cell editing, taskbar editing, dialog editing or toolbar operation, then the ScheduleStartDate and ScheduleEndDate can be dynamically updated based on that task item’s date.

PrevTimeSpan and NextTimeSpan toolbar items are used to create new time span based on the schedule mode.

  • cshtml
  • @(Html.EJ().Gantt("gantt")
    	// ...
    	.ScheduleStartDate(“02/01/2014”)
    	.ScheduleEndDate(“03/14/2014”)
    	.ToolbarSettings(tbs=>
    			{
    				tbs.ShowToolbar(true);
    				tbs.ToolbarItems(new List<GanttToolBarItems>(){
    					GanttToolBarItems.PrevTimeSpan,
    					GanttToolBarItems.NextTimeSpan,
    				});
    			}) 
    	)
    @(Html.EJ().ScriptManager())

    The following screenshot illustrates the output of the above code.