search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Add task in gantt view

Asked by requirer
8 years ago.

Hi all,

We are thinking to make a daypilot gantt control for our website. But plyaing around with demo version I realised that some features are not what we need. For example, why can't we add a task by selecting a range ?

Besides the documentation about gantt, unlike the other controls, is quiete poor; only some actions are described .

Answer posted by Dan Letecky [DayPilot]
8 years ago.

At this moment you can create a new task by entering the name first (in a special row):

This will fire RowCreate event where you can create a new task stub:

void DayPilotGantt1_RowCreate(object sender, RowCreateEventArgs e)
    DayPilotGantt1.Tasks.Add(e.Text, Guid.NewGuid().ToString(), DateTime.Today, DateTime.Today.AddDays(1));

This new task can be moved and resized as needed.

There is an older tutorial available that uses the Scheduler control to create a Gantt chart:

This tutorial add a special row at the top which you can use to create a new task by selecting a time range. However, this approach doesn't seem to be as flexible (you need to enter the task name anyway).

The Gantt chart control is largely based on the Scheduler control so most concepts can be used without any modification (time headers, grid configuration, etc.).

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.