Skip to main content

AutoQueryGrid<Model>

Auto UI for managing AutoQuery CRUD APIs

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class AutoQueryGrid<Model> : AuthBlazorComponentBase, IHasJsonApiClient

Properties

LocalStorage

View Source
Declaration
public CachedLocalStorage LocalStorage { get; set; }

NavigationManager

View Source
Declaration
public NavigationManager NavigationManager { get; set; }

JS

View Source
Declaration
public IJSRuntime JS { get; set; }

Id

View Source
Declaration
public string Id { get; set; }

ChildContent

View Source
Declaration
public RenderFragment ChildContent { get; set; }

Columns

View Source
Declaration
public RenderFragment Columns { get; set; }

AppMetadata

View Source
Declaration
public AppMetadata AppMetadata { get; set; }

FilterDefinitions

View Source
Declaration
public List<AutoQueryConvention> FilterDefinitions { get; set; }

Apis

View Source
Declaration
public Apis Apis { get; set; }

Toolbar

Replace entire Toolbar

View Source
Declaration
public RenderFragment? Toolbar { get; set; }

ToolbarButtons

Add more Toolbar buttons

View Source
Declaration
public RenderFragment? ToolbarButtons { get; set; }

AllowSelection

View Source
Declaration
public bool AllowSelection { get; set; }

AllowFiltering

View Source
Declaration
public bool AllowFiltering { get; set; }

AllowQueryFilters

View Source
Declaration
public bool AllowQueryFilters { get; set; }

ShowToolbar

View Source
Declaration
public bool ShowToolbar { get; set; }

ShowPreferences

View Source
Declaration
public bool ShowPreferences { get; set; }

ShowPagingNav

View Source
Declaration
public bool ShowPagingNav { get; set; }

ShowPagingInfo

View Source
Declaration
public bool ShowPagingInfo { get; set; }

ShowDownloadCsv

View Source
Declaration
public bool ShowDownloadCsv { get; set; }

ShowRefresh

View Source
Declaration
public bool ShowRefresh { get; set; }

ShowCopyApiUrl

View Source
Declaration
public bool ShowCopyApiUrl { get; set; }

ShowResetPreferences

View Source
Declaration
public bool ShowResetPreferences { get; set; }

ShowFiltersView

View Source
Declaration
public bool ShowFiltersView { get; set; }

ShowNewItem

View Source
Declaration
public bool ShowNewItem { get; set; }

ToolbarButtonClass

View Source
Declaration
public string ToolbarButtonClass { get; set; }

MaxFieldLength

View Source
Declaration
public int MaxFieldLength { get; set; }

TableStyle

View Source
Declaration
public TableStyle TableStyle { get; set; }

Items

View Source
Declaration
public List<Model> Items { get; set; }

CreateForm

View Source
Declaration
public RenderFragment? CreateForm { get; set; }

EditForm

View Source
Declaration
public RenderFragment<Model>? EditForm { get; set; }

DisableKeyBindings

View Source
Declaration
public Predicate<string>? DisableKeyBindings { get; set; }

HeaderSelected

View Source
Declaration
public EventCallback<Column<Model>> HeaderSelected { get; set; }

RowSelected

View Source
Declaration
public EventCallback<Model> RowSelected { get; set; }

ModalLookup

View Source
Declaration
protected DynamicModalLookup ModalLookup { get; set; }

ConfigureQuery

View Source
Declaration
public Action<QueryBase> ConfigureQuery { get; set; }

Skip

View Source
Declaration
public int Skip { get; set; }

New

View Source
Declaration
public bool? New { get; set; }

Edit

View Source
Declaration
public string Edit { get; set; }

Inherited Properties

AuthenticationStateTask

View Source
Declaration
protected Task<AuthenticationState>? AuthenticationStateTask { get; set; }

HasInit

View Source
Declaration
protected bool HasInit { get; set; }

IsAuthenticated

View Source
Declaration
protected bool IsAuthenticated { get; }

User

View Source
Declaration
protected ClaimsPrincipal User { get; set; }

Fields

DataGrid

View Source
Declaration
public DataGrid<Model> DataGrid

Methods

CreateApiUrl(String)

View Source
Declaration
public string CreateApiUrl(string ext = "json")
Returns

System.String

Parameters
TypeName
System.Stringext

ClearFiltersAsync()

View Source
Declaration
public async Task ClearFiltersAsync()
Returns

Task

ResetPreferencesAsync()

View Source
Declaration
public async Task ResetPreferencesAsync()
Returns

Task

GetColumns()

View Source
Declaration
public List<Column<Model>> GetColumns()
Returns

List<ServiceStack.Blazor.Components.Column<<Model>>>

OnEditDone()

View Source
Declaration
public void OnEditDone()

OnNewDone()

View Source
Declaration
public void OnNewDone()

OnEditSave(Model)

View Source
Declaration
public void OnEditSave(Model model)
Parameters
TypeName
<Model>model

OnNewSave(Model)

View Source
Declaration
public void OnNewSave(Model model)
Parameters
TypeName
<Model>model

CreateRequestArgs()

View Source
Declaration
public QueryBase CreateRequestArgs()
Returns

QueryBase

RefreshAsync()

View Source
Declaration
public async Task RefreshAsync()
Returns

Task

UpdateAsync()

View Source
Declaration
public async Task UpdateAsync()
Returns

Task

SearchAsync(QueryBase)

View Source
Declaration
public async Task SearchAsync(QueryBase request)
Returns

Task

Parameters
TypeName
QueryBaserequest

OnParametersSetAsync()

View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns

Task

OnInitializedAsync()

View Source
Declaration
protected override async Task OnInitializedAsync()
Returns

Task

OnAfterRenderAsync(Boolean)

View Source
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Returns

Task

Parameters
TypeName
System.BooleanfirstRender

Dispose()

View Source
Declaration
public void Dispose()

CloseDialogs()

View Source
Declaration
protected virtual void CloseDialogs()

OnKeyNav(String)

View Source
Declaration
public async Task OnKeyNav(string key)
Returns

Task

Parameters
TypeName
System.Stringkey

Inherited Methods

CanAccess(MetadataOperationType)

View Source
Declaration
protected virtual bool CanAccess(MetadataOperationType op)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

InvalidAccessMessage(MetadataOperationType)

View Source
Declaration
public virtual string InvalidAccessMessage(MetadataOperationType op)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataOperationTypeop

OnParametersSetAsync()

View Source
Declaration
protected override async Task OnParametersSetAsync()
Returns

Task

Implements

  • ServiceStack.IHasJsonApiClient
  • IDisposable