Scroll To Date in Chart

Posted by: chrismue on 27 September 2017, 12:14 pm EST

    • Post Options:
    • Link

    Posted 27 September 2017, 12:14 pm EST

    Hello Everybody,

    Can I scroll to a date position in Chart?

    ZoomRange has not work.

    I try:

    ZoomRange(StartDate, FinishDate).

    c1GanttView1.ChartStartDate and c1GanttView1.ChartFinishDate reduced the range. I can not scroll out of date range.

  • Posted 27 September 2017, 12:14 pm EST

    Hi,

    It is directly not possible to scroll to a particular date in Chart area of C1GanttView. You can only scroll to a particular task.

    However, as a workaround you can add a dummy task with Start date as the date to which you want to scroll and use ScrollToTask method to scroll to that dummy task. After that remove the dummy task.

    Below is the code:

    [csharp]private void button1_Click(object sender, EventArgs e)

    {

    Task t = new Task() { Start = DateTime.Now.AddDays(10)};

    ganttView.Tasks.Add(t);

    ganttView.ScrollToTask(t);

    ganttView.Tasks.Remove(t);

    }[/csharp]

    Thanks,

    Akshay

  • Posted 26 September 2018, 7:44 pm EST

    Hello Everybody,

    It is Possible to Disable the Contextmenü “GridContextMenu” from then Ganttview Control ?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels