SfGrid is empty after adding or editing row in version 23.2.4 - 23.2.6
I have a simple sfgrid using an odata source - it works perfect if I use nuget version 23.1.44 of syncfusion.blazor.grid. If I upgrade to any of the 23.2.x versions the grid loads fine initially but shows no rows (only counts at bottom) if I add a new row or edit a row.
<SfGrid TValue="User" AllowPaging="true" AllowSorting="true" AllowFiltering="true" AllowGrouping="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })">
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="@EditMode.Dialog">
<Template>
<DataAnnotationsValidator />
<ValidationSummary />
@{
User? user = (context as User);
<div>
<div class="form-row">
<div class="form-group col-md-6">
<label>ID</label>
<SfNumericTextBox TValue="long?" FloatLabelType="FloatLabelType.Always" Enabled="false" Value="@(user.id)"></SfNumericTextBox>
</div>
<div class="form-group col-md-6">
<label>Name</label>
<SfTextBox Placeholder='full name' @bind-Value="@(user.name)"></SfTextBox>
</div>
<div class="form-group col-md-6">
<label>EMail</label>
<SfTextBox InputType="email" Placeholder='[email protected]' @bind-Value="@(user.email)"></SfTextBox>
</div>
<div class="form-group col-md-6">
<label>Username</label>
<SfTextBox Placeholder='username' @bind-Value="@(user.username)"></SfTextBox>
</div>
<div class="form-group col-md-6">
</div>
<div class="form-group col-md-6">
<label>Status</label>
<SfDropDownList TValue="int" TItem="UserStatus" Placeholder="Select a user status" DataSource="@LocalData" @bind-Value="@user.status">
<DropDownListFieldSettings Value="ID" Text="Text"></DropDownListFieldSettings>
<DropDownListEvents TValue="int" TItem="UserStatus" ValueChange="OnValueChange"></DropDownListEvents>
</SfDropDownList>
</div>
</div>
</div>
}
</Template>
</GridEditSettings>
<GridPageSettings PageSize="10"></GridPageSettings>
<SfDataManager Url="/odata/Users" Adaptor="Adaptors.ODataV4Adaptor" HttpClientInstance="httpClient" CrossDomain="true"></SfDataManager>
<GridColumns>
<GridColumn Field=@nameof(User.id) HeaderText="ID" TextAlign="TextAlign.Center" Width="120" IsPrimaryKey="true"></GridColumn>
<GridColumn Field=@nameof(User.name) HeaderText="Full Name" Width="150" ValidationRules="@(new ValidationRules { Required = true })"></GridColumn>
<GridColumn Field=@nameof(User.email) HeaderText="EMail" Width="150" ValidationRules="@(new ValidationRules { Required = true, Email=true })"></GridColumn>
<GridColumn Field=@nameof(User.username) HeaderText="Username" Width="150" ValidationRules="@(new ValidationRules { Required = true })"></GridColumn>
<GridColumn Field=@nameof(User.status) HeaderText="Status" Width="150" ValidationRules="@(new ValidationRules { Required = true })"></GridColumn>
</GridColumns>
</SfGrid>
Hi Team,
Greetings from Syncfusion support.
We have already logged similar issue on same
stack trace with different scenario and the issue happening after the 23.2.4
version. Fix for the issue will be rolled out on upcoming patch release. We’ll update once patch is rolled out. Until then, we appreciate your
patience.
Regards,
Sarvesh
Hi Scott,
We are glad to announce that, we have included the fix for the issue “JSON serialization error occurs while
pagination” in our Essential Studio
2023 Volume 4 release v24.1.41, which is now rolled out and is available for
download under the following link.
NuGet: https://www.nuget.org/packages/Syncfusion.Blazor.Grid
We thank you for your support and appreciate your patience in waiting for this
release. Please get in touch with us if you would require any further
assistance.
Regards,
Sarvesh
- 2 Replies
- 2 Participants
-
SS Scott Szretter
- Dec 3, 2023 07:31 PM UTC
- Dec 19, 2023 04:19 AM UTC