This is a cell containing a Telerik.WinControls.UI.Sparkline element.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridSparklineCellElement : GridDataCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>, IEditableCell, IDataConversionInfoProvider, ITypeDescriptorContext, IServiceProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementConditionalFormattableGridVisualElementGridCellElementGridVirtualizedCellElementGridDataCellElementGridSparklineCellElement...
Implements:
Inherited Members
Constructors
Initializes the cell's sparkline series from its column configuration.
public GridSparklineCellElement(GridViewColumn column, GridRowElement row)
The column that supplies the sparkline settings.
rowGridRowElementThe row element that contains the cell.
Properties
Gets the child element that renders the sparkline.
public RadSparklineElement SparklineElement { get; }
Gets the cell type used to resolve the data-cell theme.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Creates and adds the sparkline child element.
protected override void CreateChildElements()
Overrides:
Creates the sparkline element displayed by this cell.
protected virtual RadSparklineElement CreateSparklineElement()
The sparkline element to add to the cell.
Removes the sparkline paint callbacks before disposing managed resources.
protected override void DisposeManagedResources()
Overrides:
Determines whether the column and row context can be rendered by this cell.
public override bool IsCompatible(GridViewColumn data, object context)
The column requested for the cell.
contextobjectThe row context requested for the cell.
Returns:Overrides:
Loads the current cell value into the sparkline after the element is loaded.
protected override void OnLoaded()
Overrides:
Updates the series when a relevant column setting changes, or recreates it when the series type changes.
protected virtual void OnSparklineColumnPropertyChanged(object sender, PropertyChangedEventArgs e)
The column whose property changed.
ePropertyChangedEventArgsThe property-change notification.
Forwards spark-fill painting to the associated column.
protected virtual void OnSparklineElementPaintSparkFill(object sender, PaintSparkFillEventArgs e)
The source of the paint notification.
ePaintSparkFillEventArgsThe fill-painting event data.
Forwards spark-stroke painting to the associated column.
protected virtual void OnSparklineElementPaintSparkStroke(object sender, PaintSparkStrokeEventArgs e)
The source of the paint notification.
ePaintSparkStrokeEventArgsThe stroke-painting event data.
Converts the cell value to sparkline points and raises SparkDataNeeded before populating the series.
protected override void SetContentCore(object value)
The cell value to convert into sparkline points.
Overrides:
A double array is used directly; other enumerable values are converted element by element. Elements that do not implement IConvertible are represented as zero, while conversion failures from ToDouble(object) propagate. The event can cancel population or supply replacement values. Scatter series receive each point as an index/value pair.
Copies marker, indicator, and tooltip settings from the column to the series.
protected virtual void SyncColumnProperties(SparkSeries series)
The series that receives the column settings.
Removes the paint callbacks subscribed on the sparkline element.
protected virtual void UnwireEvents()
Applies the column's series options after the base cell information is updated.
protected override void UpdateInfoCore()
Overrides:
Subscribes to sparkline paint callbacks and column property changes.
protected virtual void WireEvents()