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

DayPilot:DayPilotScheduler bug?

Asked by
7 years ago.


DayPilotScheduler bug, Please check Attachments.

Thank you.

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

You need to modify the event handler as follows:

protected void DayPilotScheduler1_BeforeResHeaderRender(object sender, BeforeResHeaderRenderEventArgs e)
  DataItemWrapper task = e.DataItem;
  int duration = Convert.ToInt32(task["Days"]);
  if (DayPilotScheduler1.IsExport) {
    e.Columns[0].InnerHTML = duration + " 天";
  else {
    e.Columns[0].InnerHTML = <div style='text-align:right; padding: 0px 6px 0px 2px;'>" + duration + " 天</div>";

See also:

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