public void Update(RadGanttViewElement.UpdateActions updateAction) { if (updateAction == RadGanttViewElement.UpdateActions.Reset) { this.HScrollBar.Value = this.HScrollBar.Minimum; this.VScrollBar.Value = this.VScrollBar.Minimum; this.SuspendLayout(); while (this.ViewElement.Children.Count > 0) { GanttViewTextItemElement child = (GanttViewTextItemElement)this.ViewElement.Children[0]; this.ViewElement.Children.Remove((RadElement)child); child.Detach(); } this.ResumeLayout(false); this.ViewElement.ElementProvider.ClearCache(); } if (updateAction == RadGanttViewElement.UpdateActions.Reset || updateAction == RadGanttViewElement.UpdateActions.Resume) { this.UpdateScrollers(updateAction); } this.ViewElement.UpdateItems(); if (updateAction != RadGanttViewElement.UpdateActions.StateChanged && updateAction != RadGanttViewElement.UpdateActions.Resume) { return; } this.SynchronizeItemElements(); }
public override void OnLostFocus() { base.OnLostFocus(); GanttViewTextItemElement ownerElement = this.OwnerElement as GanttViewTextItemElement; if (ownerElement == null || !ownerElement.IsInValidState(true) || (ownerElement.ElementTree.Control.Focused || this.EditorElement.Parent.ContainsMouse)) { return; } ownerElement.TextView.GanttViewElement.EndEdit(); }
public GanttCellSelfReferenceLayout(GanttViewTextItemElement itemElement) { this.itemElement = itemElement; this.indents = new List <GanttIndentCellElement>(); this.stackLayoutElement = new GanttCellSelfReferenceStackElement(); this.stackLayoutElement.StretchVertically = true; this.stackLayoutElement.StretchHorizontally = true; int num = (int)this.stackLayoutElement.SetDefaultValueOverride(RadElement.FitToSizeModeProperty, (object)RadFitToSizeMode.FitToParentBounds); this.expander = new GanttViewTextViewItemExpanderItem(itemElement); this.expander.StretchVertically = true; this.stackLayoutElement.Children.Add((RadElement)this.expander); this.BindRowProperties(); }
public GanttViewTextViewCellElement( GanttViewTextItemElement owner, GanttViewTextViewColumn column) { this.column = column; this.owner = owner; if (owner == null) { return; } int num1 = (int)this.BindProperty(GanttViewTextViewCellElement.SelectedProperty, (RadObject)owner, BaseListViewVisualItem.SelectedProperty, PropertyBindingOptions.OneWay); int num2 = (int)this.BindProperty(GanttViewTextViewCellElement.CurrentRowProperty, (RadObject)owner, GanttViewBaseItemElement.CurrentProperty, PropertyBindingOptions.OneWay); int num3 = (int)this.BindProperty(GanttViewTextViewCellElement.HotTrackingProperty, (RadObject)owner, RadElement.IsMouseOverProperty, PropertyBindingOptions.OneWay); }
public GanttIndentCellElement(GanttViewTextItemElement itemElement) { this.itemElement = itemElement; }
public GanttViewTextViewItemExpanderItem(GanttViewTextItemElement itemElement) { this.itemElement = itemElement; }
public GanttViewTextViewHeaderCellElement( GanttViewTextItemElement owner, GanttViewTextViewColumn column) : base(owner, column) { }
public GanttViewTextViewCellElementProvider(GanttViewTextItemElement owner) { this.owner = owner; }