A standalone range navigator component that displays a mini-chart with a draggable selection window. Connect to a RadzenChart via two-way binding on Start/End and the chart's ViewStart/ViewEnd.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.DefaultUICulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenRangeNavigator : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderGets or sets the format string for axis tick labels. Use standard .NET format strings, e.g. "{0:MMM yyyy}" for dates or "{0:N0}" for numbers. When not set, defaults to a short representation based on the data type.
public string AxisFormatString { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the format string for axis tick labels. Use standard .NET format strings, e.g. "{0:MMM yyyy}" for dates or "{0:N0}" for numbers. When not set, defaults to a short representation based on the data type. |
Gets or sets the child content (navigator series).
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content (navigator series). |
Gets or sets the end of the selected range as a fraction (0-1). Supports two-way binding with @bind-End.
public double End { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the end of the selected range as a fraction (0-1). Supports two-way binding with @bind-End. |
Gets or sets the callback invoked when the End value changes due to user interaction.
public EventCallback<double> EndChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<double> | Gets or sets the callback invoked when the End value changes due to user interaction. |
Gets or sets the format string for handle labels. Use standard .NET format strings, e.g. "{0:MMM dd, yyyy}" for dates. When not set, defaults to a short representation based on the data type.
public string HandleLabelFormatString { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the format string for handle labels. Use standard .NET format strings, e.g. "{0:MMM dd, yyyy}" for dates. When not set, defaults to a short representation based on the data type. |
Gets or sets the maximum value for the axis. Use when there are no child series to define the range. Supports DateTime and numeric types.
public object Max { get; set; }
| Type | Description |
|---|---|
| object | Gets or sets the maximum value for the axis. Use when there are no child series to define the range. Supports DateTime and numeric types. |
Gets or sets the minimum value for the axis. Use when there are no child series to define the range. Supports DateTime and numeric types.
public object Min { get; set; }
| Type | Description |
|---|---|
| object | Gets or sets the minimum value for the axis. Use when there are no child series to define the range. Supports DateTime and numeric types. |
Gets or sets whether an axis with tick labels is displayed below the navigator.
public bool ShowAxis { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether an axis with tick labels is displayed below the navigator. |
Gets or sets whether labels are displayed above the selection handles showing the current range values.
public bool ShowHandleLabels { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets whether labels are displayed above the selection handles showing the current range values. |
Gets or sets the start of the selected range as a fraction (0-1). Supports two-way binding with @bind-Start.
public double Start { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the start of the selected range as a fraction (0-1). Supports two-way binding with @bind-Start. |
Gets or sets the callback invoked when the Start value changes due to user interaction.
public EventCallback<double> StartChanged { get; set; }
| Type | Description |
|---|---|
| EventCallback<double> | Gets or sets the callback invoked when the Start value changes due to user interaction. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
protected override Task OnAfterRenderAsync(bool firstRender)
| Type | Name | Description |
|---|---|---|
| bool | firstRender |
| Type | Description |
|---|---|
| Task |
Called from JS when the navigator element is resized.
public void OnResize(double width, double height)
| Type | Name | Description |
|---|---|---|
| double | width | |
| double | height |