Class
TelerikRootComponent

A required root-level component that provides app-wide services and settings for Telerik UI for Blazor. Hosts ChildContent; configures localization via Localizer, icon system through IconType, and RTL with EnableRtl. Manages adaptive breakpoints (small/medium/large) and raises changes internally, maintains z-index stacking for overlay components, and tracks initialized component instances. Supports fragment rendering (dialogs/overlays) and exposes root-level settings through RootComponentSettings.

Definition

Constructors

TelerikRootComponent()

Declaration

cs-api-definition
public TelerikRootComponent()

Properties

ChildContent

Everything else in the application. The TelerikRootComponent must be at the root of the main layout of the application.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

EnableRtl

Specifies Whether RTL direction is enabled or not. Default value is false. This setting applies for Telerik UI for Blazor components only. To set global direction, set the dir attribute to an element wrapping the entire application, such as the body tag.

Declaration

cs-api-definition
[Parameter]
public bool EnableRtl { get; set; }

Property Value

bool

IconType

Specifies the icon type used across the application. Default value is Svg.

Declaration

cs-api-definition
[Parameter]
public IconType IconType { get; set; }

Property Value

IconType

Localizer

Specifies a localizer. Can be used with lazy-loading of assemblies in wasm.

Declaration

cs-api-definition
[Parameter]
public ITelerikStringLocalizer Localizer { get; set; }

Property Value

ITelerikStringLocalizer

RootComponentSettings

Declaration

cs-api-definition
[Parameter]
public RenderFragment RootComponentSettings { get; set; }

Property Value

RenderFragment

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public virtual void Dispose()

Implements IDisposable.Dispose()

StateHasChanged()

Declaration

cs-api-definition
protected virtual void StateHasChanged()