internal void AddColumn(ColumnRenderInfo <TEntity> col) { if (col != null) { Columns.Add(col); } }
internal void RemoveColumn(ColumnRenderInfo <TEntity> col) { if (col != null) { Columns.Remove(col); } }
internal async Task OnColumnClickedAsync(ColumnRenderInfo <TEntity> col) { Logger?.LogTrace("OnColumnClickedAsync - [{name}] - [{sortDirection}]", col.Title, col.SortDirection); switch (col.SortDirection) { case SortDirection.None: _sortOrder++; col.SortDirection = SortDirection.Ascending; col.SortOrder = _sortOrder; break; case SortDirection.Ascending: col.SortDirection = SortDirection.Descending; break; default: col.SortDirection = SortDirection.None; break; } await ColumnSortChangedAsync.InvokeAsync(col).ConfigureAwait(false); }
internal async Task ColumnClickedAsync(ColumnRenderInfo <TEntity> col) { await Process.OnColumnClickedAsync(col); }
public DataCol() { _colRenderInfo = new ColumnRenderInfo <TEntity, TProp>(); _rendered = false; }