Hi Team,
After I updated my SyncFusion to 17.4.0.40, the Grid component works funny.
My code:
<EjsGrid ModelType=@Model TValue="Report" AllowSorting="true" AllowFiltering="true" AllowPaging="true">
<EjsDataManager Url="http://localhost:3000/reports" Adaptor="Adaptors.WebApiAdaptor" Offline="true"></EjsDataManager>
<GridFilterSettings Type="Syncfusion.EJ2.Blazor.Grids.FilterType.Excel"></GridFilterSettings>
<GridColumns>
<GridColumn Field=@nameof(Report.FileName) AllowFiltering="false" HeaderText="Filename" IsPrimaryKey="true" TextAlign="TextAlign.Left" ClipMode="ClipMode.EllipsisWithTooltip"></GridColumn>
<GridColumn Field=@nameof(Report.ReportType) HeaderText="Report Type"></GridColumn>
<GridColumn Field=@nameof(Report.IssueDate) HeaderText="Date issued" Format="yyyy-MM-dd" Type="ColumnType.Date"></GridColumn>
<GridColumn Field=@nameof(Report.FileName) AllowFiltering="false" HeaderText="File">
<Template>
@{
var report = (context as Report);
{
<div>
<span>
<a rel='nofollow' href="@report.FileLink"><i class="edge-icon fa fa-2x fa-file-pdf-o"></i></a>
<a rel='nofollow' href="@report.FileLink"><i class="edge-icon fa fa-2x fa-remove"></i></a>
</span>
</div>
}
}
</Template>
</GridColumn>
</GridColumns>
</EjsGrid>
First, it won't work if I set the offline attribute to "true", with a runtime error,
Error: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[System.Object]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
the url http://localhost:3000/reports is just a json-server, serving the repsonse with {"Items":[{}{}{}],"Count":3}, my guess is the offline mode will direct consume the response as an array, but it is actually an object.
Another issue is that the if I remove the offline attribute, the grid is rendering upside-down, like
wonder if it just caused by my license expiration ?