protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { Logger?.LogTrace("DataTable -> OnAfterRenderAsync"); _rendered = true; if (DataSource is null) { DataSource = new DataTableSource <TEntity>(Process, Config.ReadData ?? new ReadData <TEntity>(_DefaultRead), Columns); await Process.OnReadDataAsync(Page, Config.PageSize); } if (JSRuntime is { })
public ReadDataRequest(DataTableSource <TEntity> source, int page, int pageSize) { _source = source; Page = page; PageSize = pageSize; }