New to Telerik UI for WinFormsStart a free 30-day trial

Represents the provider for the virtual row elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VirtualRowsElementProvider : IVirtualizedElementProvider<int>

Inheritance: objectVirtualRowsElementProvider

Implements: IVirtualizedElementProvider<int>

Constructors

Initializes a new instance of the VirtualRowsElementProvider class.

C#
public VirtualRowsElementProvider(VirtualGridTableElement owner)
Parameters:ownerVirtualGridTableElement

The owner.

Properties

Gets or sets the default size of the element.

C#
public SizeF DefaultElementSize { get; set; }
Property Value:

The default size of the element.

Implements: IVirtualizedElementProvider<int>.DefaultElementSize

Methods

Caches the element.

C#
public bool CacheElement(IVirtualizedElement<int> element)
Parameters:elementIVirtualizedElement<int>

The element.

Returns:

bool

Implements: IVirtualizedElementProvider<int>.CacheElement(IVirtualizedElement<int>)

Clears the cached elements.

C#
public void ClearCache()

Implements: IVirtualizedElementProvider<int>.ClearCache()

Creates the element.

C#
public VirtualGridRowElement CreateElement(int data, Type rowType, object context)
Parameters:dataint

The data.

rowTypeType

Type of the row.

contextobject

The context.

Returns:

VirtualGridRowElement

Gets the element.

C#
public IVirtualizedElement<int> GetElement(int data, object context)
Parameters:dataint

The data.

contextobject

The context.

Returns:

IVirtualizedElement<int>

Implements: IVirtualizedElementProvider<int>.GetElement(int, object)

Gets the size of the element.

C#
public SizeF GetElementSize(int data)
Parameters:dataint

The data.

Returns:

SizeF

Implements: IVirtualizedElementProvider<int>.GetElementSize(int)

Gets the size of the element.

C#
public SizeF GetElementSize(IVirtualizedElement<int> element)
Parameters:elementIVirtualizedElement<int>

The element.

Returns:

SizeF

Implements: IVirtualizedElementProvider<int>.GetElementSize(IVirtualizedElement<int>)

Determines whether the specified element is compatible with its data.

C#
public bool IsCompatible(IVirtualizedElement<int> element, int data, object context)
Parameters:elementIVirtualizedElement<int>

The element.

dataint

The data.

contextobject

The context.

Returns:

bool

true if the specified element is compatible; otherwise, false.

Implements: IVirtualizedElementProvider<int>.IsCompatible(IVirtualizedElement<int>, int, object)

Returns whether the provider should be updated.

C#
public bool ShouldUpdate(IVirtualizedElement<int> element, int data, object context)
Parameters:elementIVirtualizedElement<int>

The element.

dataint

The data.

contextobject

The context.

Returns:

bool

Implements: IVirtualizedElementProvider<int>.ShouldUpdate(IVirtualizedElement<int>, int, object)

Tries to get element with the child view.

C#
public bool TryGetElementWithChildView(int data, object context, out IVirtualizedElement<int> element)
Parameters:dataint

The data.

contextobject

The context.

elementIVirtualizedElement<int>

The element.

Returns:

bool

Tries to get element without the child view.

C#
public bool TryGetElementWithoutChildView(int data, object context, out IVirtualizedElement<int> element)
Parameters:dataint

The data.

contextobject

The context.

elementIVirtualizedElement<int>

The element.

Returns:

bool