protected void DayPilotScheduler1_OnRowCreate(object sender, RowCreateEventArgs e) { DayPilotScheduler1.Resources.Add(e.Text, Guid.NewGuid().ToString()); setDataSourceAndBind(); DayPilotScheduler1.Update(); }
void DayPilotGantt1_RowCreate(object sender, RowCreateEventArgs e) { DayPilotGantt1.Tasks.Add(e.Text, Guid.NewGuid().ToString(), DateTime.Today, DateTime.Today.AddDays(1)); DayPilotGantt1.UpdateWithMessage("Created"); }