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; }

The unique identifier for this grid instance

[Obsolete("The grid's internal id is not needed to use it. It will be removed in a future release.")]
public string GridId { get; }

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 ValueTask<IgbColumnConfiguration[]> GetColumnsAsync()

Returns any

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

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

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

Parameters

  • row: long
  • field: string
  • activate: bool

Returns any

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

  • firstRender: bool

Returns any

Refreshes the grid by re-rendering it with the current data and configuration.

[Obsolete("The grid renders on its own and updates from its parameters; assign a new collection instead of changing one in place. It will be removed in a future release.")]
public Task RefreshAsync()

Returns any

Re-renders the grid on the client with the current data and configuration.

[Obsolete("The grid renders on its own and updates from its parameters; assign a new collection instead of changing one in place. It will be removed in a future release.")]
public Task RenderAsync()

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 expressions)

Parameters

  • expressions: 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

UpdateDataAsync(IEnumerable<TItem>)

Section titled "UpdateDataAsync(IEnumerable<TItem>)"

Updates the data source for the grid.

[Obsolete("Assign a new collection to the Data parameter instead. It will be removed in a future release.")]
public Task UpdateDataAsync(IEnumerable<TItem> newData)

Parameters

  • newData: 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; }