Validating Schedule Dates in EJ 1 ASP.NET MVC Gantt
22 Mar 2018 / 1 minute to read
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.
@(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.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page