Hi - After update from Syncfusion.EJ2.Blazor 17.4.0.55 -> Syncfusion.Blazor 18.1.0.45 and changing namespaces and so on, I have now a Grid render problem.
In my grid I have 1 or 2 templates, HeaderTemplate and EditTemplate, but the GridColumns where both are present does not show on first render. After I invoke the grid, ie. edit -> cancel everything shows.
What do I need to
the HeaderTemplate shows, but not on first show.
<SfGrid >
<GridColumns>
<GridColumn Field=@nameof(ProductData.Product) HeaderText="Product" AllowEditing="true"
TextAlign="TextAlign.Left" Width="240">
<HeaderTemplate>
Product <span class="e-search-icon e-icons" @onclick="ToggleAttentionGridSearchBar"></span>
</HeaderTemplate>
</GridColumn>
<GridColumn Field=@nameof(ProductData.Supplier) HeaderText="Supplier" AllowEditing="true" TextAlign="TextAlign.Left" Width="240">
<HeaderTemplate>
<div class="rating">
Supplier <span class="e-search-icon e-icons" @onclick="ToggleAttentionGridSearchBar" />
</div>
</HeaderTemplate>
<EditTemplate>
<SfAutoComplete TItem="ProductData" TValue="string" ID="Supplier" Value="@((context as ProductData).Supplier)"
DataSource="@productDataListToEvaluate.GroupBy(o => new { o.Supplier }).Select(o => o.FirstOrDefault()).ToList()">
<AutoCompleteFieldSettings Value="Supplier"></AutoCompleteFieldSettings>
</SfAutoComplete>
</EditTemplate>
</GridColumn>
How can I get the header and icon to show on first render?
Attachment:
GridRenderError_5bc19b42.zip