protected void DayPilotScheduler1_TimeHeaderClick(object sender, TimeHeaderClickEventArgs e)
    {
        DayPilotScheduler1.DataSource = new DataManager().GetAssignments(DayPilotScheduler1);
        DayPilotScheduler1.DataBind();

        JsonData time = new JsonData();

        time["name"]  = "Time";
        time["value"] = String.Format("{0} - {1}", TimeFormatter.GetHourMinutes(e.Start, DayPilotScheduler1.TimeFormat), TimeFormatter.GetHourMinutes(e.End, DayPilotScheduler1.TimeFormat));
        time["start"] = e.Start.ToString("s");
        time["end"]   = e.End.ToString("s");

        if (DayPilotScheduler1.ClientState["filter"] == null)
        {
            DayPilotScheduler1.ClientState["filter"] = new JsonData();
        }
        DayPilotScheduler1.ClientState["filter"]["time"] = time;

        LoadResources();
        LoadSeparators();

        DayPilotScheduler1.Update();
    }
Ejemplo n.º 2
0
 protected void DayPilotScheduler1_TimeHeaderClick(object sender, TimeHeaderClickEventArgs e)
 {
     DayPilotScheduler1.UpdateWithMessage("Level: " + e.Level);
 }
Ejemplo n.º 3
0
 protected void DayPilotScheduler1_TimeHeaderClick(object sender, TimeHeaderClickEventArgs e)
 {
 }