The grid populates and shows paging and the correct number of records.
The paging does not work. Click on Page 2 nothing.
<div class="col-lg-12 control-section">
<div class="content-wrapper">
<div class="row">
<SfGrid DataSource="@GridData" AllowPaging="true">
<GridColumns>
<GridColumn Field="@nameof(RACModel.DrawId)" IsPrimaryKey="true" Visible="true" Width="100"></GridColumn>
<GridColumn Field="@nameof(RACModel.DrawDate)" HeaderText="Draw Date" Width="100"></GridColumn>
<GridColumn Field="@nameof(RACModel.STR8)" HeaderText="Result Id" Width="100"></GridColumn>
<GridColumn Field="@nameof(RACModel.DrawingAbbr)" HeaderText="Draw" Width="100"></GridColumn>
</GridColumns>
</SfGrid>
</div>
</div>
</div>
@code {
private IEnumerable<RACModel>? rac;
public List<RACModel> GridData { get; set; }
SfGrid<RACModel> Grid;
protected override async Task OnInitializedAsync()
{
await RefreshData();
}
private async Task RefreshData()
{
rac = null;
rac = await sql.GetRACs();
GridData = rac.ToList();
}
Hi Roger,
We are unable to reproduce the reported issue when attempting to reproduce the issue in the latest version 25.2.4 . For your reference we have attached screenshot and simple sample .So, to further proceed with the reporting problem, we require some additional clarification from your end. Please share the below details to proceed further at our end.
Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible. Thanks for your understanding.
Additionally, if you are using .NET 8 project. If so, kindly try the below suggested changes at your end.
Try adding the RenderMode InteractiveServer option in the grid razor page at your end.
|
[Demo.Razor]
@rendermode InteractiveServer
|
For more detailed insights, please visit the following blog and documentation.
Blog: https://www.syncfusion.com/blogs/post/blazor-ui-support-dotnet-8.aspx
Documentation: https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0
Regards,
Prathap Senthil
In my case (NET10) @rendermode InteractiveServer solved as suggested.
Thanks for the update, we are happy to hear that
the provided information was helpful. We are closing the thread now.