Represetns the element provider used by the virtualized view elements for creating visual item elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class GanttViewVirtualizedElementProvider : VirtualizedPanelElementProvider<GanttViewDataItem, GanttViewBaseItemElement>, IVirtualizedElementProvider<GanttViewDataItem>
Inheritance: objectBaseVirtualizedElementProvider<GanttViewDataItem>VirtualizedPanelElementProvider<GanttViewDataItem, GanttViewBaseItemElement>GanttViewVirtualizedElementProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the GanttViewVirtualizedElementProvider class.
public GanttViewVirtualizedElementProvider(GanttViewBaseViewElement owner)
The owner.
Methods
Creates an element for the given data opbecj in the given context.
public override IVirtualizedElement<GanttViewDataItem> CreateElement(GanttViewDataItem data, object context)
The data.
contextobjectThe context.
Returns:Overrides:
Gets the size of the element based on the given data item.
public override SizeF GetElementSize(GanttViewDataItem item)
The item.
Returns:Overrides:
Called when a new item element is created.
protected virtual GanttViewBaseItemElement OnItemElementCreating(GanttViewDataItem item)
The item.
Returns:Requests an update when a recycled element does not match the task, milestone, or summary shape of the new data.
public override bool ShouldUpdate(IVirtualizedElement<GanttViewDataItem> element, GanttViewDataItem data, object context)
The element currently representing a data item.
dataGanttViewDataItemThe data item to display in the element.
contextobjectThe virtualization context supplied with the new data item.
Returns:true if a shape mismatch or the base data check requires an update; otherwise, false. After an update is requested, the container checks compatibility to decide whether to reuse or replace the element.
Overrides: