Represents the table element of RadVirtualGrid.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class VirtualGridTableElement : ScrollViewElement<VirtualRowsContainerElement>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<VirtualRowsContainerElement>VirtualGridTableElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the VirtualGridTableElement class.
public VirtualGridTableElement(RadVirtualGridElement gridElement, VirtualGridViewInfo viewInfo)
The grid element.
viewInfoVirtualGridViewInfoThe view info.
Fields
public static RadProperty AlternatingRowColorProperty
public static RadProperty CurrentRowHeaderImageProperty
public static RadProperty EditRowHeaderImageProperty
public static RadProperty EnableHotTrackingProperty
public static RadProperty FilterRowHeightProperty
public static RadProperty HeaderRowHeightProperty
public static RadProperty IndentColumnWidthProperty
public static RadProperty NewRowHeightProperty
public static RadProperty RowErrorImageProperty
public static RadProperty RowHeightProperty
public static RadProperty RowWaitingImageProperty
Properties
Gets or sets the color of the alternating row.
[VsbBrowsable(true)]
public virtual Color AlternatingRowColor { get; set; }
The color of the alternating row.
Gets or sets the cell spacing.
public int CellSpacing { get; set; }
The cell spacing.
Gets or sets the number of columns displayed in the table element.
public int ColumnCount { get; set; }
Gets or sets the column layout.
public BaseVirtualGridColumnLayout ColumnLayout { get; set; }
The column layout.
Gets the column scroller.
public VirtualGridItemScroller ColumnScroller { get; }
The column scroller.
Gets an VirtualGridTableViewState containing information and settings for the currently displayed columns.
public VirtualGridTableViewState ColumnsViewState { get; }
Gets or sets the default column width.
public int ColumnWidth { get; set; }
Gets or sets an image for the indent cell of the current VirtualGridRowElement.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image CurrentRowHeaderImage { get; set; }
Gets or sets an image for the indent cell of a VirtualGridRowElement that is currently in edit mode.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image EditRowHeaderImage { get; set; }
Gets or sets a value indicating whether there is a visual indication for the row currently under the mouse.
[VsbBrowsable(true)]
public bool EnableHotTracking { get; set; }
Gets or sets the height of the filtering row.
[VsbBrowsable(true)]
public int FilterRowHeight { get; set; }
Gets the grid element.
public RadVirtualGridElement GridElement { get; }
The grid element.
Gets or sets the height of the header row.
[VsbBrowsable(true)]
public int HeaderRowHeight { get; set; }
Gets or sets the width of the indent column.
[VsbBrowsable(true)]
public int IndentColumnWidth { get; set; }
Gets or sets the height of the add new row.
[VsbBrowsable(true)]
public int NewRowHeight { get; set; }
Gets an instance of VirtualGridPagingPanelElement which allows the user to navigate between pages when paging is enabled.
public VirtualGridPagingPanelElement PagingPanelElement { get; }
Gets or sets the number of rows displayed in the table element.
public int RowCount { get; set; }
Gets or sets an image for the indent cell of a VirtualGridRowElement containing a data error.
[TypeConverter(typeof(ImageTypeConverter))]
public Image RowErrorImage { get; set; }
Gets or sets the default height of data rows.
[VsbBrowsable(true)]
public int RowHeight { get; set; }
Gets the row scroller.
public VirtualGridItemScroller RowScroller { get; }
The row scroller.
Gets or sets the
public int RowSpacing { get; set; }
Gets an VirtualGridTableViewState containing information and settings for the currently displayed rows.
public VirtualGridTableViewState RowsViewState { get; }
Gets or sets an image for the indent cell of a VirtualGridRowElement that is indicating the row is busy.
[TypeConverter(typeof(ImageTypeConverter))]
public Image RowWaitingImage { get; set; }
Gets or sets the view info containing the settings for this table element.
public VirtualGridViewInfo ViewInfo { get; set; }
Gets an instance of VirtualGridWaitingElement which can be used as a busy indicator for this table element.
public VirtualGridWaitingElement WaitingElement { get; }
Methods
Suspends layout updates.
public void BeginUpdate()
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Triggered when the scale is changed.
public override void DpiScaleChanged(SizeF scaleFactor)
The scale factor.
Overrides:
Resumes layout updates.
public void EndUpdate()
Gets the child view info.
public VirtualGridViewInfo GetChildViewInfo(int rowIndex)
Index of the row.
Returns:Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called when the view info property is changed.
protected virtual void OnViewInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
The sender.
ePropertyChangedEventArgsThe PropertyChangedEventArgs instance containing the event data.
Scrolls with the specified delta.
public void ScrollTo(int delta, RadScrollBarElement scrollBar)
The delta.
scrollBarRadScrollBarElementThe scroll bar.
Scrolls with the specified delta.
Sets the pin position of the specified column.
public void SetColumnPinPosition(int columnIndex, PinnedColumnPosition pinPosition)
The index of the column.
pinPositionPinnedColumnPositionThe new pin position.
Sets the pin position of the specified row.
public void SetRowPinPosition(int rowIndex, PinnedRowPosition pinPosition)
The index of the row.
pinPositionPinnedRowPositionThe new pin position.
Synchronizes the rows.
public void SynchronizeRows()
Synchronizes the rows.
public void SynchronizeRows(bool recursive)
Indicates if it is recursive.
Updates the no data text.
protected void UpdateNoDataText()
Triggers when the view info is changed.
protected virtual void UpdateOnViewInfoChanged()