Represents a cell element in RadVirtualGrid.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class VirtualGridCellElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<int>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementVirtualGridCellElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the VirtualGridCellElement class.
public VirtualGridCellElement()
Fields
Identifies the state used to style cells in the current column.
public static RadProperty IsCurrentColumnProperty
Identifies the state used to style the current cell.
public static RadProperty IsCurrentProperty
Identifies the state used to style cells in the current row.
public static RadProperty IsCurrentRowProperty
Identifies whether a cell belongs to an odd-numbered data row for alternating-row styling.
public static RadProperty IsOddRowProperty
Identifies whether a cell belongs to a pinned column, which can select a theme visual state.
public static RadProperty IsPinnedProperty
Identifies the state used to style a selected cell.
public static RadProperty IsSelectedProperty
Identifies whether a cell belongs to a sorted column, which can select a theme visual state.
public static RadProperty IsSortedProperty
Gets the number of pixels from the cell's bottom edge treated as the row-resize hit target.
public const int ResizePointerOffset = 2
Properties
Gets whether the cell can be edited.
public virtual bool CanEdit { get; }
The can edit.
Gets the index of the column.
public int ColumnIndex { get; }
The index of the column.
Gets the editor.
public virtual IInputEditor Editor { get; }
The editor.
Gets or sets the name of the field.
public string FieldName { get; protected set; }
The name of the field.
Gets or sets the format string.
public string FormatString { get; protected set; }
The format string.
Gets or sets whether the cell is current.
public virtual bool IsCurrent { get; set; }
The is current.
Gets or sets whether the column is current.
public virtual bool IsCurrentColumn { get; set; }
The is current column.
Gets or sets whether the row is current.
public virtual bool IsCurrentRow { get; set; }
The is current row.
Gets or sets whether the cell is in an odd row.
public virtual bool IsOddRow { get; set; }
The is odd row.
Gets or sets a value indicating whether the cell is pinned.
public virtual bool IsPinned { get; set; }
Gets or sets whether the cell is selected.
public virtual bool IsSelected { get; set; }
The is selected.
Gets or sets whether the cell is sorted.
public virtual bool IsSorted { get; set; }
The is sorted.
Gets the row element.
public VirtualGridRowElement RowElement { get; }
The row element.
Gets the index of the row.
public int RowIndex { get; }
The index of the row.
Gets the table element.
public VirtualGridTableElement TableElement { get; }
The table element.
Gets or sets the value.
public object Value { get; protected set; }
The value.
Gets the view info.
public VirtualGridViewInfo ViewInfo { get; }
The view info.
Methods
Adds the editor.
Arranges the editor element.
protected virtual void ArrangeEditorElement(SizeF finalSize, RectangleF clientRect)
The final size.
clientRectRectangleFThe client rect.
Detaches the cell element.
public virtual void Detach()
Implements:
Gets the editor element associated with this cell element.
public RadItem GetEditorElement(IInputEditor editor)
The editor which element we search.
Returns:An instance of RadItem that represents the editor element. Null if there is no editor element.
Initializes the specified owner.
public virtual void Initialize(VirtualGridTableElement owner)
The owner.
Raises the event.
protected override void OnMouseMove(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Overrides:
Raises the event.
protected virtual void OnRowElementPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs instance containing the event data.
Removes the editor.
Synchronizes this instance.
public virtual void Synchronize()
Implements:
Synchronizes the specified update content.
public virtual void Synchronize(bool updateContent)
Content of the update.
Synchronizes the specified context.
public virtual void Synchronize(VirtualGridRowElement context)
The context.
Updates the info.
protected virtual void UpdateInfo(VirtualGridCellValueNeededEventArgs args)
The VirtualGridCellValueNeededEventArgs instance containing the event data.