public async Task FilterAsync(string name, string value) { Page = 1; _filterValue = value; _filterColumn = name; OnFilter?.Invoke(name); Items = (await DataSet.Invoke(Page - 1, _sortColumn, _desc, _filterColumn, _filterValue)).ToList(); _itemCount = TotalRecords.Invoke(); await InvokeAsync(StateHasChanged); }
public async Task Refresh() { _itemCount = TotalRecords.Invoke(); Items = (await DataSet.Invoke(Page - 1, _sortColumn, _desc, _filterColumn, _filterValue)).ToList(); await InvokeAsync(StateHasChanged); }
protected override async Task OnInitializedAsync() { Page = StartPage; _itemCount = TotalRecords.Invoke(); Items = (await DataSet.Invoke(Page - 1, _sortColumn, false, _filterColumn, _filterValue)).ToList(); }