Class TsakGrid<T>

Assembly: redb.Tsak.Web.dll
[Authorize]
public class TsakGrid<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Inheritance

Object→ComponentBase→TsakGrid<T>

Implements

Properties

EmptyContent

[Parameter]
public RenderFragment? EmptyContent { get; set; }

Filterable

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

FilterSelector

[Parameter]
public Func<T, string>? FilterSelector { get; set; }

HeaderContent

[Parameter]
[EditorRequired]
public RenderFragment? HeaderContent { get; set; }

Items

[Parameter]
[EditorRequired]
public IEnumerable<T>? Items { get; set; }

OnRowClick

[Parameter]
public EventCallback<T> OnRowClick { get; set; }

PageSize

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

PageSizeChanged

Raised when the reader picks another page size, so a page that outlives this grid can remember the

[Parameter]
public EventCallback<int> PageSizeChanged { get; set; }

PageSizeOptions

Page sizes the reader may switch between, shown next to the pager. Null leaves

[Parameter]
public int[]? PageSizeOptions { get; set; }

RowContent

[Parameter]
[EditorRequired]
public RenderFragment<T> RowContent { get; set; }

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied .

protected override void BuildRenderTree(RenderTreeBuilder __builder)

OnParametersSet()

Method invoked when the component has received parameters from its parent in

protected override void OnParametersSet()

Sort(string, Func<T, IComparable>)

public void Sort(string column, Func<T, IComparable> selector)

SortIndicator(string)

public string SortIndicator(string column)