Esempio n. 1
0
 public virtual void AddRange(GanttViewTextViewColumnCollection columns)
 {
     this.BeginUpdate();
     for (int index = 0; index < columns.Count; ++index)
     {
         this.Add(columns[index]);
     }
     this.EndUpdate();
 }
 public GanttViewTextViewElement(RadGanttViewElement ganttView)
     : base(ganttView)
 {
     this.columns = new GanttViewTextViewColumnCollection(ganttView);
     this.columns.CollectionChanged      += new NotifyCollectionChangedEventHandler(this.columns_CollectionChanged);
     this.columnScroller.Traverser        = (ITraverser <GanttViewTextViewColumn>) new GanttViewTextViewColumnTraverser((IList <GanttViewTextViewColumn>) this.columns);
     this.columnContainer.DataProvider    = (IEnumerable)this.columnScroller;
     this.columnScroller.ScrollerUpdated += new EventHandler(this.columnScroller_ScrollerUpdated);
     this.Scroller.ScrollState            = ScrollState.AlwaysHide;
     this.Scroller.ScrollMode             = ItemScrollerScrollModes.Smooth;
     this.Scroller.Traverser              = (ITraverser <GanttViewDataItem>) new GanttViewTraverser(ganttView);
 }