Good afternoon
I'm having a problem with redrawing a RadzenDropDownDataGrid.
I attach the code and a sample gif so you can see the component.
If I have AllowVirtualization active, when the list has more than 2 values it is not drawn.
On the other hand, if I disable this option, it works correctly.
@page "/test"
@list_Variedades.Count
<RadzenDropDownDataGrid AllowFiltering="true"
FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
AllowClear="false"
@bind-Value=@ie_VariedadesSeleccionadas
Multiple="true"
MaxSelectedLabels="1"
Data=@list_Variedades
TextProperty="Nombre"
ValueProperty="Codigo"
ShowPagingSummary=false
Density="Density.Compact"
PageSize=1000
AllowVirtualization=true
@ref=GridSeleccionVariedades
>
<Columns>
<RadzenDropDownDataGridColumn Property="Nombre" Title="Variedad" />
<RadzenDropDownDataGridColumn Property="Codigo" Title="Codigo" />
</Columns>
</RadzenDropDownDataGrid>
Add
@code {
List<Lm_CodigoIntNombre> list_Variedades = new();
List<int> ie_VariedadesSeleccionadas = new();
RadzenDropDownDataGrid<List<int>> GridSeleccionVariedades;
private async Task add()
{
Lm_CodigoIntNombre add = new();
add.Codigo = System.DateTime.Now;
add.Nombre = System.DateTime.Now.ToString();
list_Variedades.Add(add);
await GridSeleccionVariedades.Reload();
}
private class Lm_CodigoIntNombre
{
public DateTime Codigo { get; set; }
public string Nombre { get; set; }
}
}