10888 : I would like to apply a vertical stripe to a specific day (or days)

…In the implementation of the OnTimeItemAreaPaintBackground event int numberOfDaysOnScreen=Round(Gantt.StopTime-Gantt.StartTime) for i=0 to numberOfDaysOnScreen-1 do begin   DateTime oneDay=Gantt.StartTime+i   Color c=GetColorForThisDay(oneDay)   int PixelForStartOfDay=Gantt.DateScaler.TimeToPixel(Trunc(oneDay))   int PixelForEndOfDay=Gantt.DateScaler.TimeToPixel(Trunc(oneDay)+1)   DrawColoredRectangle(PixelForStartOfDay,0,PixelForEndOfDay,Gantt.Height) end  … Continue reading

10886 : I would like to color columns for certain days in a different color with the phGantTimePackage.

…pseudo code I would go like this: int numberOfDaysOnScreen=Round(phGant.Stop-phGant.Start) for i=0 to numberOfDaysOnScreen-1 do begin   DateTime oneDay=phGantt.Start+i   Color c=GetColorForThisDay(oneDay)   int PixelForStartOfDay=phGantt.DateToPixel(Trunc(oneDay))   int PixelForEndOfDay=phGantt.DateToPixel(Trunc(oneDay)+1)   DrawColoredRectangle(PixelForStartOfDay,0,PixelForEndOfDay,Gantt.Height) end… Continue reading

11021 : Im using Gantt_Asp but everytime I modify a timeitem I have a postback and I lose my f1.dataset values

…the data…         f1.dataSet1.ReadXml(Page.MapPath(“.\\App_Data\\project.xml”));         System.IO.MemoryStream ms = new System.IO.MemoryStream();         f1.dataSet1.WriteXml(ms);         Page.Session.Add(“thedata_proj”, ms);         Page.Session.Add(“loaded_proj”, true);       }       else       {  // Returning user, get the cached… Continue reading

10620 : Drag in grid

…System.Windows.Forms.MouseEventArgs) If Not gantt1.Grid.GridStructure.FocusedCell Is Nothing Then gantt1.Grid.StopRowResize() gantt1.DoDragDrop(gantt1.Grid.GridStructure.FocusedCell.Content.Value.ToString(), DragDropEffects.All) End If End Sub Private Sub gantt1_OnGridDragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) ‘ Drag drop events return screen… Continue reading

10508 : Show details of Task in ToolTip for each of the timelines. I would like to know how to do it.

…(e.Diff.Days!=0)            newTooltipText=newTooltipText+”\n and to the new date “+gantt1.FocusedTimeItem.Start.Add(e.Diff).ToLongDateString();         }       }       else       if (gantt1.MouseMoveKind==MouseMoveKind.resizew)       {         newTooltipText=”You are changing the start time of a time… Continue reading