Class
GridBase<TItem>

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

cs-api-definition
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.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>)

Constructors

GridBase()

Declaration

cs-api-definition
protected GridBase()

Properties

Height

Defines the height of the component as a CSS value.

Declaration

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

Property Value

string

OnModelInit

Fires when a new instance of the model is about to be created. Useful when no parameterless constructor is implemented. If the delegate is not defined, Activator.CreateInstance method is used to create a new model instance.

Declaration

cs-api-definition
[Parameter]
public Func<TItem> OnModelInit { get; set; }

Property Value

Func<TItem>

Page

Defines the selected page. Default value is 1. Requires Pageable="true".

Declaration

cs-api-definition
[Parameter]
public virtual int Page { get; set; }

Property Value

int

PageChanged

Fires when the user changes the page.

Declaration

cs-api-definition
[Parameter]
public EventCallback<int> PageChanged { get; set; }

Property Value

EventCallback<int>

PageSize

Defines the page size of the component. Requires Pageable="true".

Declaration

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

Property Value

int

PageSizeChanged

Fires when new page size is selected.

Declaration

cs-api-definition
[Parameter]
public EventCallback<int> PageSizeChanged { get; set; }

Property Value

EventCallback<int>

Pageable

Defines whether the component is pageable.

Declaration

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

Property Value

bool

TotalCount

Declaration

cs-api-definition
protected virtual int TotalCount { get; set; }

Property Value

int

Width

Defines the width of the Component as a CSS value.

Declaration

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

Property Value

string