Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenComponent

    Base class of Radzen Blazor components.

    Inheritance
    System.Object
    RadzenComponent
    GaugeBase
    RadzenAccordion
    RadzenAccordionItem
    RadzenAppearanceToggle
    RadzenBadge
    RadzenBreadCrumbItem
    RadzenButton
    RadzenCarousel
    RadzenChart
    RadzenCheckBoxListItem<TValue>
    RadzenDataFilter<TItem>
    RadzenDatePicker<TValue>
    RadzenDropZoneItem<TItem>
    RadzenFieldset
    RadzenFormField
    RadzenGoogleMap
    RadzenGoogleMapMarker
    RadzenGravatar
    RadzenHeading
    RadzenIcon
    RadzenLabel
    RadzenLink
    RadzenLogin
    RadzenMarkdown
    RadzenMenuItem
    RadzenPager
    RadzenPanelMenuItem
    RadzenPickList<TItem>
    RadzenProfileMenuItem
    RadzenRadioButtonListItem<TValue>
    RadzenScheduler<TItem>
    RadzenSelectBarItem
    RadzenSidebarToggle
    RadzenSpeechToTextButton
    RadzenSplitButtonItem
    RadzenSplitter
    RadzenSplitterPane
    RadzenSSRSViewer
    RadzenSteps
    RadzenStepsItem
    RadzenTabs
    RadzenTemplateForm<TItem>
    RadzenText
    RadzenTimeline
    RadzenTimelineItem
    RadzenTimeSpanPicker<TValue>
    RadzenToc
    RadzenTree
    RadzenUpload
    ValidatorBase
    DataBoundFormComponent<T>
    FormComponent<T>
    PagedDataBoundComponent<T>
    RadzenComponentWithChildren
    Implements
    IDisposable
    Namespace: Radzen
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenComponent : ComponentBase, IDisposable

    Properties

    Attributes

    Specifies additional custom attributes that will be rendered by the component.

    Declaration
    public IReadOnlyDictionary<string, object> Attributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<System.String, System.Object>

    The attributes.

    ContextMenu

    A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu via .

    Declaration
    public EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs> ContextMenu { get; set; }
    Property Value
    Type Description
    EventCallback<Microsoft.AspNetCore.Components.Web.MouseEventArgs>

    Culture

    Gets or sets the culture used to display localizable data (numbers, dates). Set by default to .

    Declaration
    public CultureInfo Culture { get; set; }
    Property Value
    Type Description
    CultureInfo

    CurrentStyle

    Gets the current style as a dictionary.

    Declaration
    protected IDictionary<string, string> CurrentStyle { get; }
    Property Value
    Type Description
    IDictionary<System.String, System.String>

    The current style as a dictionary of keys and values.

    DefaultCulture

    Gets or sets the culture set by a parent component.

    Declaration
    public CultureInfo DefaultCulture { get; set; }
    Property Value
    Type Description
    CultureInfo

    Element

    Gets a reference to the HTML element rendered by the component.

    Declaration
    public ElementReference Element { get; protected set; }
    Property Value
    Type Description
    ElementReference

    IsJSRuntimeAvailable

    Gets or sets a value indicating whether JSRuntime is available.

    Declaration
    protected bool IsJSRuntimeAvailable { get; set; }
    Property Value
    Type Description
    System.Boolean

    JSRuntime

    Gets or sets the js runtime.

    Declaration
    protected IJSRuntime JSRuntime { get; set; }
    Property Value
    Type Description
    IJSRuntime

    The js runtime.

    MouseEnter

    A callback that will be invoked when the user hovers the component. Commonly used to display a tooltip via Open(ElementReference, String, TooltipOptions).

    Declaration
    public EventCallback<ElementReference> MouseEnter { get; set; }
    Property Value
    Type Description
    EventCallback<ElementReference>

    MouseLeave

    A callback that will be invoked when the user moves the mouse out of the component. Commonly used to hide a tooltip via Close().

    Declaration
    public EventCallback<ElementReference> MouseLeave { get; set; }
    Property Value
    Type Description
    EventCallback<ElementReference>

    Reference

    Gets the reference for the current component.

    Declaration
    protected DotNetObjectReference<RadzenComponent> Reference { get; }
    Property Value
    Type Description
    DotNetObjectReference<RadzenComponent>

    The reference.

    Style

    Gets or sets the inline CSS style.

    Declaration
    public virtual string Style { get; set; }
    Property Value
    Type Description
    System.String

    The style.

    UniqueID

    Gets or sets the unique identifier.

    Declaration
    public string UniqueID { get; set; }
    Property Value
    Type Description
    System.String

    The unique identifier.

    Visible

    Gets or sets a value indicating whether this RadzenComponent is visible. Invisible components are not rendered.

    Declaration
    public virtual bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if visible; otherwise, false.

    Methods

    Debounce(Func<Task>, Int32)

    Debounces the specified action.

    Declaration
    protected void Debounce(Func<Task> action, int milliseconds = 500)
    Parameters
    Type Name Description
    Func<Task> action

    The action.

    System.Int32 milliseconds

    The milliseconds.

    Dispose()

    Detaches event handlers and disposes Reference.

    Declaration
    public virtual void Dispose()

    GetComponentCssClass()

    Gets the component CSS class.

    Declaration
    protected virtual string GetComponentCssClass()
    Returns
    Type Description
    System.String

    GetCssClass()

    Gets the final CSS class rendered by the component. Combines it with a class custom attribute.

    Declaration
    protected string GetCssClass()
    Returns
    Type Description
    System.String

    GetId()

    Gets the unique identifier.

    Declaration
    protected virtual string GetId()
    Returns
    Type Description
    System.String

    Returns the id attribute (if specified) or generates a random one.

    OnAfterRenderAsync(Boolean)

    Called by the Blazor runtime.

    Declaration
    protected override async Task OnAfterRenderAsync(bool firstRender)
    Parameters
    Type Name Description
    System.Boolean firstRender
    Returns
    Type Description
    Task

    OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)

    Raises ContextMenu.

    Declaration
    public virtual async Task OnContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs args)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Web.MouseEventArgs args

    The instance containing the event data.

    Returns
    Type Description
    Task

    OnInitialized()

    Called by the Blazor runtime.

    Declaration
    protected override void OnInitialized()

    OnMouseEnter()

    Raises MouseEnter.

    Declaration
    public async Task OnMouseEnter()
    Returns
    Type Description
    Task

    OnMouseLeave()

    Raises MouseLeave.

    Declaration
    public async Task OnMouseLeave()
    Returns
    Type Description
    Task

    RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs)

    Invoked via interop when the browser "oncontextmenu" event is raised for this component.

    Declaration
    public async Threading.Tasks.Task RaiseContextMenu(Microsoft.AspNetCore.Components.Web.MouseEventArgs e)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Web.MouseEventArgs e

    The instance containing the event data.

    Returns
    Type Description
    System.Threading.Tasks.Task

    RaiseMouseEnter()

    Invoked via interop when the browser "onmouseenter" event is raised for this component.

    Declaration
    public async Threading.Tasks.Task RaiseMouseEnter()
    Returns
    Type Description
    System.Threading.Tasks.Task

    RaiseMouseLeave()

    Invoked via interop when the browser "onmouseleave" event is raised for this component.

    Declaration
    public async Threading.Tasks.Task RaiseMouseLeave()
    Returns
    Type Description
    System.Threading.Tasks.Task

    SetParametersAsync(ParameterView)

    Called by the Blazor runtime when parameters are set.

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

    The parameters.

    Returns
    Type Description
    Task

    Implements

    IDisposable

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT