Grid fix null exception on ItemsToShow

features/rewrite/gridfix
markosteger 2 years ago
parent 5f8215c5c5
commit abcdb71bda

@ -9,9 +9,9 @@ public partial class Grid<DataType> : ComponentBase
{ {
[Parameter] [Parameter]
public ObservableCollection<DataType>? Items { get; set; } public ObservableCollection<DataType>? Items { get; set; } = new();
private List<DataType>? ItemsToShow { get; set; } private List<DataType>? ItemsToShow { get; set; } = new();
[Parameter] [Parameter]
public RenderFragment<DataType>? RowTemplate { get; set; } public RenderFragment<DataType>? RowTemplate { get; set; }

Loading…
Cancel
Save