Class
TelerikListView<TItem>

The class for the TelerikListView component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

public class TelerikListView<TItem> : GridBase<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataBoundComponent<TItem>GridBase<TItem>TelerikListView<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members GridBase<TItem>.WidthGridBase<TItem>.HeightGridBase<TItem>.PageSizeChangedGridBase<TItem>.PageSizeGridBase<TItem>.PageGridBase<TItem>.PageChangedGridBase<TItem>.PageableGridBase<TItem>.OnModelInitGridBase<TItem>.TotalCountDataBoundComponent<TItem>.SetParametersAsync(ParameterView)DataBoundComponent<TItem>.Dispose()DataBoundComponent<TItem>.Rebind()DataBoundComponent<TItem>.DataBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()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.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DisExceptionAsync(Exception)

Constructors

TelerikListView()

Declaration

public TelerikListView()

Properties

ComponentLoaderContainer

Declaration

public ComponentLoaderContainer ComponentLoaderContainer { get; set; }

Property Value

ComponentLoaderContainer

EditTemplate

Defines the edit template of the ListView.

Declaration

[Parameter]
public RenderFragment<TItem> EditTemplate { get; set; }

Property Value

RenderFragment<TItem>

EnableLoaderContainer

Defines whether the loading container should be shown when there are long-running operations.

Declaration

[Parameter]
public bool EnableLoaderContainer { get; set; }

Property Value

bool

FooterTemplate

Defines the footer template of the ListView.

Declaration

[Parameter]
public RenderFragment FooterTemplate { get; set; }

Property Value

RenderFragment

HeaderTemplate

Defines the header template of the ListView.

Declaration

[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

ListViewSettings

Defines the settings template of the ListView. Children: ListViewPagerSettings.

Declaration

[Parameter]
public RenderFragment ListViewSettings { get; set; }

Property Value

RenderFragment

OnCancel

Fires when the Cancel command is executed.

Declaration

[Parameter]
public EventCallback<ListViewCommandEventArgs> OnCancel { get; set; }

Property Value

EventCallback<ListViewCommandEventArgs>

OnCreate

Fires when the Create command is executed.

Declaration

[Parameter]
public EventCallback<ListViewCommandEventArgs> OnCreate { get; set; }

Property Value

EventCallback<ListViewCommandEventArgs>

OnDelete

Fires when the Delete command is executed.

Declaration

[Parameter]
public EventCallback<ListViewCommandEventArgs> OnDelete { get; set; }

Property Value

EventCallback<ListViewCommandEventArgs>

OnEdit

Fires when the Edit command is executed.

Declaration

[Parameter]
public EventCallback<ListViewCommandEventArgs> OnEdit { get; set; }

Property Value

EventCallback<ListViewCommandEventArgs>

OnRead

Fires when the data source is read. Use this to attach your own sorting, filtering and other logic. Once attached, you must implement all such data source operations here, the Component will no longer perform them for you.

Declaration

[Parameter]
public EventCallback<ListViewReadEventArgs> OnRead { get; set; }

Property Value

EventCallback<ListViewReadEventArgs>

OnUpdate

Fires when the Update command is executed.

Declaration

[Parameter]
public EventCallback<ListViewCommandEventArgs> OnUpdate { get; set; }

Property Value

EventCallback<ListViewCommandEventArgs>

Template

Defines the default template of the ListView.

Declaration

[Parameter]
public RenderFragment<TItem> Template { get; set; }

Property Value

RenderFragment<TItem>

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRenderAsync(bool)

Declaration

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnParametersSetAsync()

Declaration

protected override Task OnParametersSetAsync()

Returns

Task

Overrides DataBoundComponent<TItem>.OnParametersSetAsync()

SetFocusedItemIndex(int)

Declaration

public void SetFocusedItemIndex(int index)

Parameters

index

int