ClassTelerikRootComponent
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikRootComponent : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseTelerikRootComponent
Implements:
Inherited Members
Constructors
TelerikRootComponent()
Declaration
public TelerikRootComponent()
Properties
ChildContent
Everything else in the application. The TelerikRootComponent must be at the root of the main layout of the application.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
IconType
Specifies the icon type used across the application. Default value is Svg.
Declaration
[Parameter]
public IconType IconType { get; set; }
Property Value
Localizer
Specifies a localizer. Can be used with lazy-loading of assemblies in wasm.
Declaration
[Parameter]
public ITelerikStringLocalizer Localizer { get; set; }
Property Value
RootComponentSettings
Declaration
[Parameter]
public RenderFragment RootComponentSettings { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public virtual void Dispose()
Implements
StateHasChanged()
Declaration
protected virtual void StateHasChanged()