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

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

C#
public abstract class GridBase<TItem> : DataBoundComponent<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>GridBase<TItem>

Derived Classes: TableGridBase<TItem, TCommandEventArgs>TelerikListView<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members DataBoundComponent<TItem>.SetParametersAsync(ParameterView)DataBoundComponent<TItem>.OnParametersSetAsync()DataBoundComponent<TItem>.Dispose()DataBoundComponent<TItem>.Rebind()DataBoundComponent<TItem>.DataBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)...

Constructors

C#
protected GridBase()

Properties

Sets the overall height of the Grid component using CSS units. Use pixels ("400px"), viewport units ("50vh"), or other CSS values to control vertical space.

C#
[Parameter]
public string Height { get; set; }

Provides a custom factory method for creating new data item instances during add operations. Essential when your model lacks a parameterless constructor. If not provided, Activator.CreateInstance is used to create new instances automatically. Use this to initialize default values, set required properties, or handle complex object construction.

C#
[Parameter]
public Func<TItem> OnModelInit { get; set; }

Sets the currently active page number for navigation. Use 1-based indexing where 1 is the first page. Only applies when Pageable is enabled. Default value is 1 (first page).

C#
[Parameter]
public virtual int Page { get; set; }

Enables page navigation controls for browsing large datasets by splitting them into smaller pages. Not compatible with virtual scrolling (Virtual).

C#
[Parameter]
public bool Pageable { get; set; }

Fires when the user navigates to a different page using pagination controls. Use this to track page changes. Only triggered when Pageable is enabled.

C#
[Parameter]
public EventCallback<int> PageChanged { get; set; }

Sets how many data items to display on each page when pagination is enabled. Controls the granularity of data presentation and affects performance. Must be greater than 0. Only applies when Pageable is true.

C#
[Parameter]
public int PageSize { get; set; }

Fires when the user selects a different page size from the pager dropdown. Use this to respond to page size changes and update data accordingly.

C#
[Parameter]
public EventCallback<int> PageSizeChanged { get; set; }
C#
protected virtual int TotalCount { get; set; }

Sets the overall width of the Grid component using CSS units. Use pixels ("400px"), percentages ("100%"), or other CSS values to control horizontal space.

C#
[Parameter]
public string Width { get; set; }