Hello Radzen Team!
I'm not sure after which update this started, because it's been a long time since I had to create a DataGrid, but Radzen can't figure out its type anymore.
.razor.designer.cs:
protected RadzenGrid<dynamic> dataGrid;
.razor:
<RadzenGrid @ref="dataGrid" AllowFiltering="true" AllowPaging="true" AllowSorting="true" Data="@roles" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" FilterDelay="100" FilterMode="FilterMode.Advanced" TItem="dynamic" PageNumbersCount="30" RowSelect="@DataGridRowSelect">
<Columns>
<RadzenGridColumn TItem="dynamic" Property="id" Title="Id" Visible="false">
</RadzenGridColumn>
<RadzenGridColumn TItem="dynamic" Property="name" Title="Name">
</RadzenGridColumn>
<RadzenGridColumn TItem="dynamic" Filterable="false" Sortable="false" Width="60px">
<Template Context="data">
<RadzenButton ButtonStyle="ButtonStyle.Primary" ButtonType="ButtonType.Button" Icon="delete" Size="ButtonSize.Medium" Click="@((args) =>DeleteButtonClick(args, dynamic))" @onclick:stopPropagation="true">
</RadzenButton>
</Template>
</RadzenGridColumn>
</Columns>
</RadzenGrid>
Build error:
Cannot implicitly convert type 'Radzen.Blazor.RadzenGrid<dynamic>' to 'Radzen.Blazor.RadzenGrid<Global.Models.Role>'
I tried resetting the DataGrid Data to refresh the TItem, plus tried manually setting in the Attributes, but nothing fixed it. Also when I tried copying an existing working DataGrid, the same thing happened.