10229 : Changing the snapping functionality

…PlexityHide.GTP.TimeItemEventArgs) Handles GanttPurchasing.OnTimeItem_Move, GanttProduction.OnTimeItem_Move, GanttPlanning.OnTimeItem_Move   If e.Diff.TotalSeconds > Then     e.TimeItem.TimeItemLayout.SnapStartTime = New TimeSpan(0, 0, 0, 0)     e.TimeItem.TimeItemLayout.SnapStopTime = New TimeSpan(1, 0, 0, 0)   Else     e.TimeItem.TimeItemLayout.SnapStartTime… Continue reading

10336 : Spaces before and after a timeitemtext?

…reduce the rect that the time item text is drawn in. TimeItemText titext1=new TimeItemText();  titext1.Text=”Sample text”;  //titext1.TimeItemTextLayout=new TimeItemTextLayout();  titext1.TimeItemTextLayout=gantt1.TimeItemTextLayouts.GetFromName(“Default”);  titext1.TimeItemTextLayout.Color=Color.PowderBlue;  titext1.TimeItemTextLayout.Font=new Font(FontFamily.GenericMonospace,14,FontStyle.Bold);  titext1.TimeItemTextLayout.Padding=new Rectangle(2,2,2,2);  // the rect is reduced with 2 pixels all around titext1.TimeItemTextLayout.VertAlign=StringAlignment.Near;  ti1.TimeItemTexts.Add(titext1); … Continue reading

10175 : How can I insert Sub-nodes when using the gantt control in data-bound mode?

…sub nodes    if (e.GridNode.SubLevel==0)    {     DataView subNodeView = new DataView(dataSet21.project);     if (val is Int32)      subNodeView.RowFilter=”ownedby=”+val.ToString();     else      subNodeView.RowFilter=”ownedby=-1″;      // Set the SubNodes to bind to the subNodeView     e.GridNode.SubNodes_DataSourceList=subNodeView;    }   }… Continue reading