Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

QuickGrid databinding issues on Grid.RefreshDataAsync

$
0
0

Has anyone encountered data binding issues with QuickGrid? Grid.RefreshDataAsync does not update any data binding for child components. Additionally, it never updates pagination.TotalItemCount. A similar issue is discussed here. https://github.com/dotnet/aspnetcore/issues/55979

<QuickGrid ItemsProvider="itemsProvider" Pagination="pagination">      // ...</QuickGrid>  protected override void OnInitialized()    {        ErrorMessage = null;        itemsProvider = GetItemsAsync;    }    private async ValueTask<GridItemsProviderResult<Item>> GetItemsAsync(GridItemsProviderRequest<Item> req)    {       // Any property changes here does not propagate to child components unless StateHasChanged(); is called.    }

This is how Grid refresh is called

protected Task OnRefresh(){    ErrorMessage = null;    return Grid.RefreshDataAsync();}

Viewing all articles
Browse latest Browse all 4839

Trending Articles