RadzenChartComponentBase Class

Base class of components that are rendered inside a RadzenChart.

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.BuildRenderTree

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public abstract class RadzenChartComponentBase : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenChartComponentBaselink

Base class of components that are rendered inside a RadzenChart.

Declaration
protected RadzenChartComponentBase()

Properties

Chartlink

Used to inject the RadzenChart instance. Invokes Initialize.

Declaration
public RadzenChart Chart { get; set; }
Property Value
Type Description
RadzenChartUsed to inject the RadzenChart instance. Invokes Initialize.

Methods

DidParameterChangelink

Checks if the specified parameter changed.

Declaration
protected bool DidParameterChange(ParameterView parameters, string parameterName, T parameterValue)
Parameters
Type Name Description
ParameterView parameters The parameters.
string parameterName Name of the parameter.
T parameterValue The parameter value.
Returns
Type Description
booltrue if the parameter changed, false otherwise.

Initializelink

Perform initialization when Chart is set.

Declaration
protected virtual void Initialize()

SetParametersAsynclink

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task

ShouldRefreshChartlink

Determines if RadzenChart should render.

Declaration
protected virtual bool ShouldRefreshChart(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters The parameters.
Returns
Type Description
bool

ValidateParameterslink

Validates the parameters.

Declaration
protected virtual void ValidateParameters()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙