ClassDataBoundComponent<TItem>
Definition
Namespace:Telerik.Blazor.Components.Common
Assembly:Telerik.Blazor.dll
Type Parameters:
TItem
Syntax:
public abstract class DataBoundComponent<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>
Derived Classes:
Implements:
Inherited Members
Constructors
DataBoundComponent()
Declaration
protected DataBoundComponent()
Properties
Data
Provides the data source for the component, containing the items to be displayed in the PanelBar. Can be any IEnumerable collection such as List, Array, or ObservableCollection of your data model objects. The component automatically updates when the data changes if using ObservableCollection. Example: myDataList, employees, or categories.
Declaration
[Parameter]
public IEnumerable<TItem> Data { get; set; }
Property Value
IEnumerable<TItem>
Methods
Dispose()
Declaration
public override void Dispose()
Overrides
Implements
Rebind()
Processes the available data with applied all data operations. Useful in scenarios where the data might change from an outside source. If the component contains OnRead, the method triggers the event so that fresh data can be supplied.
Declaration
public virtual void Rebind()
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides