ClassVirtualGridViewInfo
Represents the view info.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class VirtualGridViewInfo : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectVirtualGridViewInfo
Implements:
Inherited Members
Constructors
VirtualGridViewInfo(RadVirtualGridElement)
Initializes a new instance of the VirtualGridViewInfo class.
Declaration
public VirtualGridViewInfo(RadVirtualGridElement gridElement)
Parameters
gridElement
The grid element.
VirtualGridViewInfo(VirtualGridViewInfo, int)
Initializes a new instance of the VirtualGridViewInfo class.
Declaration
public VirtualGridViewInfo(VirtualGridViewInfo parentViewInfo, int parentRowIndex)
Parameters
parentViewInfo
The parent view info.
parentRowIndex
Index of the parent row.
Fields
FilterRowHeightProperty
Declaration
public static RadProperty FilterRowHeightProperty
Field Value
HeaderRowHeightProperty
Declaration
public static RadProperty HeaderRowHeightProperty
Field Value
NewRowHeightProperty
Declaration
public static RadProperty NewRowHeightProperty
Field Value
Properties
AllowCellContextMenu
Gets or sets a value indicating whether right-clicking on a data cell will show the default data cell context menu.
AllowColumnHeaderContextMenu
Gets or sets a value indicating whether right-clicking on a header cell will show the default header cell context menu.
Declaration
public bool AllowColumnHeaderContextMenu { get; set; }
Property Value
AllowColumnResize
Gets or sets a value indicating whether users can resize columns through the grid UI.
AllowColumnSort
Gets or sets a value indicating whether users can sort columns by clicking the header or through the header context menu.
AllowCopy
Gets or sets a value indicating whether the Copy option in the context menu and the Ctrl+C shortcut will be available to the user.
AllowCut
Gets or sets a value indicating whether the Cut option in the context menu and the Ctrl+X shortcut will be available to the user.
AllowDelete
Gets or sets a value indicating whether users can delete rows.
AllowEdit
Gets or sets a value indicating whether users can edit the values in data cells.
AllowMultiColumnSorting
Gets or sets a value indicating whether the users can sort by more than one column.
AllowPaste
Gets or sets a value indicating whether the Paste option in the context menu and the Ctrl+V shortcut will be available to the user.
AllowRowResize
Gets or sets a value indicating whether users can resize rows through the grid UI.
AutoSizeColumnsMode
Gets or sets a value indicating how column widths are determined.
Declaration
public VirtualGridAutoSizeColumnsMode AutoSizeColumnsMode { get; set; }
Property Value
CellSpacing
Gets or sets the distance between adjacent cells.
ColumnCount
Gets or sets the total number of columns to be displayed in the grid.
ColumnWidth
Gets or sets the default column width.
ColumnsViewState
Gets an VirtualGridTableViewState containing information and settings for the currently displayed columns.
Declaration
public VirtualGridTableViewState ColumnsViewState { get; }
Property Value
EnableAlternatingRowColor
Gets or sets a value indicating whether event and odd rows will have a different back color.
Declaration
public bool EnableAlternatingRowColor { get; set; }
Property Value
EnablePaging
Gets or sets a value indicating whether data is presented in chunks (pages) to the user.
ExpandedHeight
Gets or sets the height of the current view when it is a child view and UseScrollbarsInHierarchy is set to true.
FilterDescriptors
Gets the filter descriptors currently applied to the grid.
Declaration
public FilterDescriptorCollection FilterDescriptors { get; }
Property Value
FilterRowHeight
Gets or sets the height of the filter row.
FilterRowValues
Gets a dictionary containing a cache of the values entered in the filter row. The key is the column index.
Declaration
public Dictionary<int, FilterOperator> FilterRowValues { get; }
Property Value
Dictionary<int, FilterOperator>
GridElement
Gets an instance of RadVirtualGridElement which is the main element of this control.
Declaration
public RadVirtualGridElement GridElement { get; }
Property Value
HeaderRowHeight
Gets or sets the height of the header row.
HierarchyLevel
Gets the hierarchy level of the current view.
HorizontalScrollState
Gets or sets the ScrollState of the horizontal scroll bar.
Declaration
public ScrollState HorizontalScrollState { get; set; }
Property Value
IsExpanded
Gets a value indicating whether this view's parent row is expanded.
IsWaiting
Gets or sets a value indicating whether the busy indicator of the current view is visible.
MinColumnWidth
Gets or sets the minimum width a column can be.
MinRowHeight
Gets or sets the minimum height a data row can be.
Name
Gets or sets the name of the view.
NewRowHeight
Gets or sets the height of the add new row.
NewRowValues
Gets a dictionary containing a cache of the values entered in the new row. The key is the column index.
Padding
Gets or sets the amount of padding to be applied to child views.
PageIndex
Gets or sets the index of the page currently presented in the grid.
PageSize
Gets or sets the number of rows shown per page when paging is enabled.
ParentRowIndex
Gets the index of the parent row when the current view is a child view.
ParentViewInfo
Gets the parent view info when the current view info is a child view info.
Declaration
public VirtualGridViewInfo ParentViewInfo { get; }
Property Value
RowCount
Gets or sets the total number of rows to be displayed in the grid.
RowHeight
Gets or sets the default height of the data rows.
RowSpacing
Gets or sets the space between adjacent rows.
RowsViewState
Gets an VirtualGridTableViewState containing information and settings for the currently displayed rows.
Declaration
public VirtualGridTableViewState RowsViewState { get; }
Property Value
ShowFilterRow
Gets or sets a value indicating whether the filter row is visible.
ShowHeaderRow
Gets or sets a value indicating whether the header row is visible.
ShowNewRow
Gets or sets a value indicating whether the add new row is visible.
SortDescriptors
Gets the sort descriptors currently applied to the grid.
Declaration
public SortDescriptorCollection SortDescriptors { get; }
Property Value
Tag
Gets or sets an object used for storing any user data.
TotalPages
Gets the total number of pages when paging is enabled.
VerticalScrollState
Gets or sets the ScrollState of the vertical scroll bar.
Declaration
public ScrollState VerticalScrollState { get; set; }
Property Value
Methods
BindProperties(VirtualGridTableElement)
Binds the properties.
Declaration
public void BindProperties(VirtualGridTableElement source)
Parameters
source
The source.
ClearRowErrorText(int)
Clears the error text of the specified row.
Declaration
public void ClearRowErrorText(int rowIndex)
Parameters
rowIndex
The index of the row.
CollapseRow(int)
Collapses the specified row.
CreateChildViewInfo(int)
Creates a child view info for the specified row.
Declaration
protected virtual VirtualGridViewInfo CreateChildViewInfo(int rowIndex)
Parameters
rowIndex
The index of the row.
Returns
A new instance of VirtualGridViewInfo.
ExpandRow(int)
Expands the specified row.
GetChildViewInfo(int)
Gets the child view info for the specified row.
Declaration
public VirtualGridViewInfo GetChildViewInfo(int rowIndex)
Parameters
rowIndex
The index of the row.
Returns
The child view info if it exists, otherwise null.
GetChildViewInfo(int, bool)
Gets the child view info for the specified row.
Declaration
public VirtualGridViewInfo GetChildViewInfo(int rowIndex, bool forceCreate)
Parameters
rowIndex
The index of the row.
forceCreate
Determines if a new child view info should be created if one does not exist.
Returns
The child view info if it exists, otherwise null.
GetColumnAllowNaturalSort(int)
Gets a value indicating whether clicking on the header cell of this column would allow the user to set natural (no) sort.
GetColumnDataType(int)
Gets the data type of the specified column.
GetColumnPinPosition(int)
Gets the column pin position.
Declaration
public PinnedColumnPosition GetColumnPinPosition(int columnIndex)
Parameters
columnIndex
Index of the column.
Returns
GetColumnWidth(int)
Gets the height of the column at the given column index.
GetRowErrorText(int)
Returns the error text for the specified row.
GetRowHeight(int)
Gets the height of the row at the given row index.
GetRowPinPosition(int)
Gets the row pin position.
Declaration
public PinnedRowPosition GetRowPinPosition(int rowIndex)
Parameters
rowIndex
Index of the row.
Returns
GetTotalRowHeight()
Gets the total height of the row.
HandlePropertyChange(string)
Handles the property change.
Declaration
protected void HandlePropertyChange(string propertyName)
Parameters
propertyName
Name of the property.
InitializeViewInfo()
Initializes the view info.
Declaration
protected virtual void InitializeViewInfo()
IsColumnPinned(int)
Returns a value indicating whether the specified column is pinned.
IsCustomColumn(int)
Returns a value indicating whether the specified column is registered as custom.
IsRowExpanded(int)
Returns a value indicating whether the specified row is expanded.
IsRowPinned(int)
Returns a value indicating whether the specified row is pinned.
IsRowWaiting(int)
Returns a value indicating whether the specified row is marked as waiting.
MoveToFirstPage()
Moves the current view to the first page.
Declaration
public void MoveToFirstPage()
MoveToLastPage()
Moves the current view to the last page.
Declaration
public void MoveToLastPage()
MoveToNextPage()
Moves the current view to the next page index.
Declaration
public void MoveToNextPage()
MoveToPage(int)
Moves the current view to the specified page index.
Declaration
public void MoveToPage(int pageIndex)
Parameters
pageIndex
The index of the page.
MoveToPreviousPage()
Moves the current view to the previous page index.
Declaration
public void MoveToPreviousPage()
OnFilterDescriptorsCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnFilterDescriptorsCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing information about the property change.
Overrides
RegisterCustomColumn(int)
Registers the column as one containing custom cells. This prevents default cells from being displayed in that column.
ResetViewState()
Resets the view states of the view. Resets row heights, pin positions, expanded state, column widths and column pin positions.
Declaration
public void ResetViewState()
RowHasError(int)
Returns a value indicating whether the row has error text assigned to it.
SetColumnAllowNaturalSort(int, bool)
Sets a value indicating whether clicking on the header cell of this column would allow the user to set natural (no) sort.
SetColumnDataType(int, Type)
Sets the data type of the column. This affects the editors in the column and the available filter options.
SetColumnDataType(params Type[])
Sets the specified data types as the data type of the columns in the view info. The assignment starts from the first column and ends where the specified data types end. Data types affect the editors in the columns and the available filter options for each column.
Declaration
public void SetColumnDataType(params Type[] dataTypes)
Parameters
dataTypes
Type[]
The data types.
SetColumnPinPosition(int, PinnedColumnPosition)
Sets the pin position of the specified column.
Declaration
public void SetColumnPinPosition(int columnIndex, PinnedColumnPosition pinPosition)
Parameters
columnIndex
The index of the column.
pinPosition
The new pin position.
SetColumnWidth(int, int)
Sets the width of the column at the specified column index in the master view info.
SetRowErrorText(int, string)
Sets the row error text for the specified row. Setting the error text to null has the same effect as calling ClearRowErrorText(int)
SetRowHeight(int, int)
Sets the height of the row at the specified row index in the master view info.
SetRowPinPosition(int, PinnedRowPosition)
Sets the pin position of the specified row.
Declaration
public void SetRowPinPosition(int rowIndex, PinnedRowPosition position)
Parameters
rowIndex
The index of the row.
position
The new pin position.
StartRowWaiting(int)
Marks the specified row as waiting. This will display a waiting indicator in the row indent cell.
Declaration
public void StartRowWaiting(int rowIndex)
Parameters
rowIndex
The index of the row.
StopRowWaiting(int)
Removes the mark of the specified row as waiting. This will hide the waiting indicator in the row indent cell.
Declaration
public void StopRowWaiting(int rowIndex)
Parameters
rowIndex
Index of the row.
UnbindProperties(VirtualGridTableElement)
Unbinds the properties.
Declaration
public void UnbindProperties(VirtualGridTableElement source)
Parameters
source
The source.
UnregisterCustomColumn(int)
Removes the column registration as one containing custom cells.