Class VirtualRowsElementProvider
Represents the provider for the virtual row elements.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class VirtualRowsElementProvider : IVirtualizedElementProvider<int>
Constructors
VirtualRowsElementProvider(VirtualGridTableElement)
Initializes a new instance of the VirtualRowsElementProvider class.
Declaration
public VirtualRowsElementProvider(VirtualGridTableElement owner)
Parameters
VirtualGridTableElement
owner
The owner. |
Properties
DefaultElementSize
Gets or sets the default size of the element.
Declaration
public SizeF DefaultElementSize { get; set; }
Property Value
System.Drawing.SizeF
The default size of the element. |
Implements
Methods
CacheElement(IVirtualizedElement<Int32>)
Caches the element.
Declaration
public bool CacheElement(IVirtualizedElement<int> element)
Parameters
IVirtualizedElement<System.Int32>
element
The element. |
Returns
System.Boolean
|
Implements
ClearCache()
Clears the cached elements.
Declaration
public void ClearCache()
Implements
CreateElement(Int32, Type, Object)
Creates the element.
Declaration
public VirtualGridRowElement CreateElement(int data, Type rowType, object context)
Parameters
System.Int32
data
The data. |
System.Type
rowType
Type of the row. |
System.Object
context
The context. |
Returns
VirtualGridRowElement
|
GetElement(Int32, Object)
Gets the element.
Declaration
public IVirtualizedElement<int> GetElement(int data, object context)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
Returns
IVirtualizedElement<System.Int32>
|
Implements
GetElementSize(Int32)
Gets the size of the element.
Declaration
public SizeF GetElementSize(int data)
Parameters
System.Int32
data
The data. |
Returns
System.Drawing.SizeF
|
Implements
GetElementSize(IVirtualizedElement<Int32>)
Gets the size of the element.
Declaration
public SizeF GetElementSize(IVirtualizedElement<int> element)
Parameters
IVirtualizedElement<System.Int32>
element
The element. |
Returns
System.Drawing.SizeF
|
Implements
IsCompatible(IVirtualizedElement<Int32>, Int32, Object)
Determines whether the specified element is compatible with its data.
Declaration
public bool IsCompatible(IVirtualizedElement<int> element, int data, object context)
Parameters
IVirtualizedElement<System.Int32>
element
The element. |
System.Int32
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Implements
ShouldUpdate(IVirtualizedElement<Int32>, Int32, Object)
Returns whether the provider should be updated.
Declaration
public bool ShouldUpdate(IVirtualizedElement<int> element, int data, object context)
Parameters
IVirtualizedElement<System.Int32>
element
The element. |
System.Int32
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Implements
TryGetElementWithChildView(Int32, Object, out IVirtualizedElement<Int32>)
Tries to get element with the child view.
Declaration
public bool TryGetElementWithChildView(int data, object context, out IVirtualizedElement<int> element)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
IVirtualizedElement<System.Int32>
element
The element. |
Returns
System.Boolean
|
TryGetElementWithoutChildView(Int32, Object, out IVirtualizedElement<Int32>)
Tries to get element without the child view.
Declaration
public bool TryGetElementWithoutChildView(int data, object context, out IVirtualizedElement<int> element)
Parameters
System.Int32
data
The data. |
System.Object
context
The context. |
IVirtualizedElement<System.Int32>
element
The element. |
Returns
System.Boolean
|