Esempio n. 1
0
 void DayPilotGantt1_Command(object sender, DayPilot.Web.Ui.Events.Gantt.CommandEventArgs e)
 {
     if (e.Command == "goto")
     {
         DayPilotGantt1.StartDate = Convert.ToDateTime((string)e.Data);
         DayPilotGantt1.Days      = DateTime.DaysInMonth(DayPilotGantt1.StartDate.Year, DayPilotGantt1.StartDate.Month);
         LoadTasksAndLinks();
         DayPilotGantt1.UpdateWithMessage("Command received: " + e.Command);
     }
 }
Esempio n. 2
0
    void DayPilotGantt1_Command(object sender, DayPilot.Web.Ui.Events.Gantt.CommandEventArgs e)
    {
        switch (e.Command)
        {
        case "goto":
            DayPilotGantt1.StartDate = Convert.ToDateTime((string)e.Data);
            DayPilotGantt1.Days      = DateTime.DaysInMonth(DayPilotGantt1.StartDate.Year, DayPilotGantt1.StartDate.Month);
            LoadTasksAndLinks();
            DayPilotGantt1.UpdateWithMessage("Command received: " + e.Command);
            break;

        case "clientstate":
            DayPilotGantt1.UpdateWithMessage("filter: " + DayPilotGantt1.ClientState["filter"]);
            break;
        }
    }