Class
VirtualCellsElementProvider

Represents a virtualized cell elements provider.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class VirtualCellsElementProvider : IVirtualizedElementProvider<int>

Inheritance: objectVirtualCellsElementProvider

Implements: IVirtualizedElementProvider<int>

Constructors

VirtualCellsElementProvider(VirtualGridTableElement)

Initializes a new instance of the VirtualCellsElementProvider class.

Declaration

cs-api-definition
public VirtualCellsElementProvider(VirtualGridTableElement owner)

Parameters

owner

VirtualGridTableElement

The owner.

Properties

DefaultElementSize

Gets or sets the default size of the element.

Declaration

cs-api-definition
public SizeF DefaultElementSize { get; set; }

Property Value

SizeF

The default size of the element.

Implements IVirtualizedElementProvider<int>.DefaultElementSize

Methods

CacheElement(IVirtualizedElement<int>)

Caches the element.

Declaration

cs-api-definition
public bool CacheElement(IVirtualizedElement<int> element)

Parameters

element

IVirtualizedElement<int>

The element.

Returns

bool

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

ClearCache()

Clears the cached elements.

Declaration

cs-api-definition
public void ClearCache()

Implements IVirtualizedElementProvider<int>.ClearCache()

CreateElement(int, Type, object)

Creates the element.

Declaration

cs-api-definition
public VirtualGridCellElement CreateElement(int data, Type cellType, object context)

Parameters

data

int

The data.

cellType

Type

Type of the cell.

context

object

The context.

Returns

VirtualGridCellElement

GetElement(int, object)

Gets the element.

Declaration

cs-api-definition
public IVirtualizedElement<int> GetElement(int data, object context)

Parameters

data

int

The data.

context

object

The context.

Returns

IVirtualizedElement<int>

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

GetElementSize(IVirtualizedElement<int>)

Gets the size of the element.

Declaration

cs-api-definition
public SizeF GetElementSize(IVirtualizedElement<int> element)

Parameters

element

IVirtualizedElement<int>

The element.

Returns

SizeF

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

GetElementSize(int)

Gets the size of the element.

Declaration

cs-api-definition
public SizeF GetElementSize(int data)

Parameters

data

int

The data.

Returns

SizeF

Implements IVirtualizedElementProvider<int>.GetElementSize(int)

IsCompatible(IVirtualizedElement<int>, int, object)

Determines whether the specified element is compatible with its data.

Declaration

cs-api-definition
public bool IsCompatible(IVirtualizedElement<int> element, int data, object context)

Parameters

element

IVirtualizedElement<int>

The element.

data

int

The data.

context

object

The context.

Returns

bool

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

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

ShouldUpdate(IVirtualizedElement<int>, int, object)

Returns whether an update operation should be performed.

Declaration

cs-api-definition
public bool ShouldUpdate(IVirtualizedElement<int> element, int data, object context)

Parameters

element

IVirtualizedElement<int>

The element.

data

int

The data.

context

object

The context.

Returns

bool

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