Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public async Task Refresh()
 {
     _itemCount = TotalRecords.Invoke();
     Items      = (await DataSet.Invoke(Page - 1, _sortColumn, _desc, _filterColumn, _filterValue)).ToList();
     await InvokeAsync(StateHasChanged);
 }
Ejemplo n.º 3
0
 protected override async Task OnInitializedAsync()
 {
     Page       = StartPage;
     _itemCount = TotalRecords.Invoke();
     Items      = (await DataSet.Invoke(Page - 1, _sortColumn, false, _filterColumn, _filterValue)).ToList();
 }