New to Telerik UI for BlazorStart a free 30-day trial

Base class for all Telerik Blazor components.

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class BaseComponent : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponent

Derived Classes: AIPromptPromptViewContentAIPromptBaseAnimationBaseButtonBaseColumnMenuBaseDataBoundComponent<TItem>ListCustomValueDropZoneBaseTableEditForm<TItem>TableSearchBoxIconBaseBindingComponentBaseLinearProgressBarBaseTelerikInputBase<T>TelerikSliderBase<TValue>TelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext>DialogBaseDockManagerFloatingPaneDockManagerSplitterPaneDockManagerTabStripPaneDockManagerUnpinnedPaneContainerDockManagerPaneBaseEditorAIPromptSettingsBaseGanttTaskBase<TItem>GridToolBarAIAssistantToolPromptSettingsGridToolBarAIAssistantToolWindowSettingsGridToolBarSmartBoxToolHistorySettingsBaseGridToolBarSmartBoxToolSearchSettingsBaseContentTableBase<TItem>SmartBoxHistorySettingsBaseSmartBoxSearchSettingsBaseTelerikAppBarTelerikAvatarTelerikBadgeTelerikButtonGroupTelerikCalendarTelerikCardTelerikChartBreadcrumbTelerikChat<TItem>TelerikCheckBoxListFilterTelerikChipTelerikChipList<TItem>TelerikColorGradientTelerikDateRangePicker<T>TelerikDockManagerTelerikDrawer<TItem>TelerikFilterTelerikFloatingLabelTelerikFormTelerikGantt<TItem>TelerikGridLayoutTelerikLoaderTelerikLoaderContainerTelerikMediaQueryTelerikNotificationTelerikPagerTelerikPdfViewerTelerikPivotGridConfiguratorTelerikPivotGridConfiguratorButtonTelerikPivotGridContainerTelerikPopoverTelerikPopupTelerikRadioGroup<TItem, TValue>TelerikRatingTelerikRecurrenceEditorTelerikRecurrenceEndEditorTelerikRecurrenceFrequencyEditorTelerikRecurrenceIntervalEditorTelerikScheduler<TItem>TelerikSegmentedControl<TItem, TValue>TelerikSkeletonTelerikSplitterTelerikSpreadsheetTelerikStackLayoutTelerikStepperTelerikTabStripTelerikTaskBoard<TItem, TColumn>TelerikTileLayoutTelerikToolBarTelerikTooltipTelerikWindowTelerikWizardToolBarItemBaseTreeListAutoGeneratedColumnsValidationBaseDataVizComponent...

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public BaseComponent()

Methods

C#
public virtual void Dispose()

Implements: IDisposable.Dispose()

C#
protected static string GetClassString(params string?[] classNames)
Parameters:classNamesstring[]Returns:

string

C#
protected static bool HaveOptionsChanged(IDictionary<string, object> oldOptions, IDictionary<string, object> newOptions)
Parameters:oldOptionsIDictionary<string, object>newOptionsIDictionary<string, object>Returns:

bool

C#
protected void InitLocalizer()
C#
protected virtual ValueTask<T> InvokeAsync<T>(string methodName, CancellationToken cancellationToken, params object[] args)
Parameters:methodNamestringcancellationTokenCancellationTokenargsobject[]Returns:

ValueTask<T>

C#
protected virtual ValueTask<T> InvokeAsync<T>(string methodName, params object?[] args)
Parameters:methodNamestringargsobject[]Returns:

ValueTask<T>

C#
protected virtual ValueTask<T> InvokeComponentMethodAsync<T>(string methodName, CancellationToken cancellationToken, params object[] args)
Parameters:methodNamestringcancellationTokenCancellationTokenargsobject[]Returns:

ValueTask<T>

C#
protected virtual ValueTask<T> InvokeComponentMethodAsync<T>(string methodName, params object[] args)
Parameters:methodNamestringargsobject[]Returns:

ValueTask<T>

C#
protected virtual ValueTask InvokeComponentVoidMethodAsync(string methodName, object? args = null)
Parameters:methodNamestringargsobjectReturns:

ValueTask

C#
protected Task InvokeDisposeAsync()
Returns:

Task

C#
protected virtual ValueTask InvokeVoidAsync(string methodName, params object?[] args)
Parameters:methodNamestringargsobject[]Returns:

ValueTask

C#
protected virtual void InvokeVoidAsyncWithoutAwait(string methodName, params object?[] args)
Parameters:methodNamestringargsobject[]
C#
protected virtual ValueTask InvokeVoidComponentMethodAsync(string methodName, params object[] args)
Parameters:methodNamestringargsobject[]Returns:

ValueTask

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: ComponentBase.OnAfterRenderAsync(bool)

C#
protected override Task OnInitializedAsync()
Returns:

Task

Overrides: ComponentBase.OnInitializedAsync()

C#
protected override bool ShouldRender()
Returns:

bool

Overrides: ComponentBase.ShouldRender()

C#
protected virtual void StateHasChanged()
C#
protected static void ThrowIfParameterIsNull(object argumentValue, string argumentName)
Parameters:argumentValueobjectargumentNamestring

Properties

Applies additional CSS classes to the component's root element for custom styling and visual modifications. Use this to add custom themes, spacing, colors, or responsive design classes to enhance the component's appearance. Multiple classes can be specified separated by spaces. Example: "my-custom-panel dark-theme responsive". Classes are applied alongside the default Telerik component styling classes without overriding core functionality.

C#
[Parameter]
public string? Class { get; set; }
C#
[CascadingParameter]
public TelerikRootComponent? RootComponent { get; set; }