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

How to disable the percentage that is displayed in the task box as text ("51%") in Gantt

Asked by Roger
9 years ago.

How to disable the percentage that is displayed in the task box as text ("51%") in Gantt?

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

You can override the task box text using BeforeTaskRender event handler:

The following example will show the task text instead of the percentage:

void DayPilotGantt1_BeforeTaskRender(object sender, BeforeTaskRenderEventArgs e)
{
  e.Box.Html = e.Text;
}

See also:
http://doc.daypilot.org/gantt/task-customization/

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