IgbGridLite is a component for displaying data in a tabular format quick and easy.

Inheritance

object
ComponentBase
Implements
  • IComponent
  • IHandleEvent
  • IHandleAfterRender
  • IAsyncDisposable

constructor

public IgbGridLite()

Returns IgbGridLite<TItem>

Additional attributes for the component's HTML element element.

[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? AdditionalAttributes { get; set; }

Whether the grid will adopt document-level styles into its shadow DOM. Useful when using cell and header templates that rely on styles defined at the document level.

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

Whether the grid will try to "resolve" its column configuration based on the passed data source. This is usually executed on initial rendering in the DOM.

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

Child content for declarative column definitions

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

The data to display in the grid

[Parameter]
public IEnumerable<TItem>? Data { get; set; }

Initial filter expressions to apply when the grid is rendered

[Parameter]
public IEnumerable<IgbGridLiteFilterExpression>? FilterExpressions { get; set; }

Initial sort expressions to apply when the grid is rendered

[Parameter]
public IEnumerable<IgbGridLiteSortingExpression>? SortingExpressions { get; set; }

Sort options property for the grid.

[Parameter]
public IgbGridLiteSortingOptions? SortingOptions { get; set; }
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

  • __builder: RenderTreeBuilder

Returns any

Resets the current filter state of the grid.

public Task ClearFilterAsync(string? key = null)

Parameters

  • key: string

Returns any

Resets the current sort state of the grid.

public Task ClearSortAsync(string? key = null)

Parameters

  • key: string

Returns any

public ValueTask DisposeAsync()

Returns any

FilterAsync(IgbGridLiteFilterExpression)

Section titled "FilterAsync(IgbGridLiteFilterExpression)"

Performs a filter operation in the grid based on the passed expression(s).

public Task FilterAsync(IgbGridLiteFilterExpression expression)

Parameters

  • expression: IgbGridLiteFilterExpression

Returns any

FilterAsync(IEnumerable<IgbGridLiteFilterExpression>)

Section titled "FilterAsync(IEnumerable<IgbGridLiteFilterExpression>)"

Performs a filter operation in the grid based on the passed expression(s).

public Task FilterAsync(IEnumerable<IgbGridLiteFilterExpression> expressions)

Parameters

  • expressions: IEnumerable

Returns any

Returns the current column configuration list.

public Task<IgbGridLiteColumnConfiguration[]> GetColumnsAsync()

Returns any

Section titled "NavigateToAsync(int, string?, bool)"

Navigates to a position in the grid based on provided row index and column field.

public Task NavigateToAsync(int row, string? field = null, bool activate = false)

Parameters

  • row: int
  • field: string
  • activate: bool

Returns any

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

public override Task SetParametersAsync(ParameterView parameters)

Parameters

  • parameters: ParameterView

Returns any

SortAsync(IgbGridLiteSortingExpression)

Section titled "SortAsync(IgbGridLiteSortingExpression)"

Performs a sort operation in the grid based on the passed expression(s).

public Task SortAsync(IgbGridLiteSortingExpression expression)

Parameters

  • expression: IgbGridLiteSortingExpression

Returns any

SortAsync(IEnumerable<IgbGridLiteSortingExpression>)

Section titled "SortAsync(IEnumerable<IgbGridLiteSortingExpression>)"

Performs a sort operation in the grid based on the passed expression(s).

public Task SortAsync(IEnumerable<IgbGridLiteSortingExpression> expressions)

Parameters

  • expressions: IEnumerable

Returns any

Fires when a filter operation initiated through the UI has completed. Returns the filter state for the affected column.

[Parameter]
public EventCallback<IgbGridLiteFilteredEventArgs> Filtered { get; set; }

Fires when filtering is initiated through the UI.

[Parameter]
public EventCallback<IgbGridLiteFilteringEventArgs> Filtering { get; set; }

Fires once, when the grid has rendered on the client for the first time.

[Parameter]
public EventCallback Rendered { get; set; }

Fires when a sort operation initiated through the UI has completed. Returns the sort expression used for the operation.

[Parameter]
public EventCallback<IgbGridLiteSortedEventArgs> Sorted { get; set; }

Fires when sorting is initiated through the UI. Returns the sort expression which will be used for the operation.

[Parameter]
public EventCallback<IgbGridLiteSortingEventArgs> Sorting { get; set; }