When I upgraded to 3.6.0 my TelerikGrid pager stopped rendering correctly.
The first image below is after the page has been rendered and the data source contains 10 rows. Paging is enabled using a server-side data source/database repository. The second image below is simply what it looks like when I click on the dropdown.
If I hit refresh I see the normal-looking pager with 7 buttons horizontal as expected. Like the one that works with version 3.5.0, included below.
But it only appears for a second and then it changes back to the one above.
The grid OnReadHandler looks like this:
protected async Task OnReadHandler(GridReadEventArgs args)
{
InquiryResponse<Drug> response = await _drugAdapter.FindByDataSourceRequestAsync(args.Request, true);
if (response.ResponseData.Any())
{
args.Data = response.ResponseData;
}
args.Total = response.AvailableTotalItems;
}
All downstream methods are async and await is used on all method calls just like I have seen in the demos for using remote data service.
The grid is defined as follows:
<TelerikGrid @ref="@DrugListGridRef"
TItem="@Drug"
OnRead="@OnReadHandler"
Sortable="true"
SortMode="@SortMode.Multiple"
EnableLoaderContainer="false"
FilterMode="@GridFilterMode.FilterMenu"
Pageable="true"
PageSize="@PageSize"
Resizable="true">
<GridSettings>
<GridPagerSettings InputType="PagerInputType.Buttons"
PageSizes="@PageSizes"
ButtonCount="7"
Adaptive="true">
</GridPagerSettings>
</GridSettings>
If I downgrade to 3.5.0 everything works as expected.
Thanks,
Ed