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