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

MudBlazor - MudGrid and data paging with Blazor

$
0
0

Ive just started using the MudDataGrid in the MudBlazor componet set and Im trying to get serverside data retrieval and paging working.

I found an excellent example here

Mudgrid and serverside data

And by following it, I managed to get the functionality to work. I do have one problem though, for no reason that I can see, the forward/backward/first/last buttons are always disabled ! Ive inspected the html and this is what I see

<button type="button" disabled class="mud-button-root mud-icon-button mud-ripple mud-ripple-icon mud-flip-x-rtl" _bl_9bb473ae-a2b8-457a-8564-cc4d1a6ca9c7=""><span class="mud-icon-button-label"><!--!--><svg class="mud-icon-root mud-svg-icon mud-icon-size-medium" focusable="false" viewBox="0 0 24 24" aria-hidden="true"><!--!--><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path><path d="M24 24H0V0h24v24z" fill="none"></path></svg></span></button>

this is my grid setup, its working perfectly, just no enabled paging buttons

<MudDataGrid ServerData="LoadGridData" T="AgencyGridViewModel" @ref="_dataGrid"><ToolBarContent><MudText Typo="Typo.h6">Agencies</MudText><MudSpacer /><MudTextField @bind-Value="_searchString" Placeholder="Search" Adornment="Adornment.Start" Immediate="true"                      AdornmentIcon="@Icons.Material.Filled.Search" IconSize="MudBlazor.Size.Medium" Class="mt-0"></MudTextField></ToolBarContent><Columns><PropertyColumn Property="x => x.AgencyName" Title="Agency Name" /><PropertyColumn Property="x => x.AgencyAdd1" Title="Address 1" /><PropertyColumn Property="x => x.AgencyAdd2" Title="Address 2" /><PropertyColumn Property="x => x.AgencyTown_City" Title="Town/City" /><PropertyColumn Property="x => x.AgencyPostcode" Title="Postcode" /></Columns><PagerContent><MudDataGridPager T="AgencyGridViewModel" Disabled="false" /></PagerContent></MudDataGrid>

is this a known issue, or am I missing something, hopefully someone will have an answer


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>