protected override void CreateChildElements() { base.CreateChildElements(); this.cellContainer = this.CreateColumnContainer(); this.cellContainer.StretchHorizontally = true; this.cellContainer.StretchVertically = true; this.cellContainer.Orientation = Orientation.Horizontal; this.cellContainer.ElementProvider = (IVirtualizedElementProvider <GanttViewTextViewColumn>) this.CreateElementProvider(); this.Children.Add((RadElement)this.cellContainer); }
protected override void CreateChildElements() { base.CreateChildElements(); this.columnContainer = new GanttViewTextViewColumnContainer(this); this.columnContainer.StretchHorizontally = true; this.columnContainer.StretchVertically = true; this.columnContainer.ElementProvider = (IVirtualizedElementProvider <GanttViewTextViewColumn>) new GanttViewTextViewHeaderCellElementProvider(); this.Children.Add((RadElement)this.columnContainer); this.columnsScrollBar = new RadScrollBarElement(); this.columnsScrollBar.ScrollType = ScrollType.Horizontal; this.columnsScrollBar.MinSize = new Size(0, RadScrollBarElement.HorizontalScrollBarHeight); this.columnsScrollBar.ScrollTimerDelay = 1; this.Children.Add((RadElement)this.columnsScrollBar); this.columnScroller = new GanttViewTextViewColumnScroller(); this.columnScroller.ScrollMode = ItemScrollerScrollModes.Smooth; this.columnScroller.ElementProvider = this.columnContainer.ElementProvider; this.columnScroller.Scrollbar = this.columnsScrollBar; }