@page "/gridtestpage"
@using Microsoft.IdentityModel.Tokens
@using Telerik.Blazor;
@using Telerik.Blazor.Components;
GridTestPage
@if (context is Dictionary items)
{
@items["Id"]
}
@if (context is Dictionary items)
{
@items["Min"]
}
@if (context is Dictionary items)
{
@items["Max"]
}
@code {
private TelerikGrid> TelerikGridRef { get; set; }
private List> _dataToView { get; set; } = [];
private List> DataToView
{
get
{
if (_dataToView.IsNullOrEmpty())
{
_dataToView.Add(new Dictionary()
{
{"Id", 1},
{"Min", 2},
{"Max", 3},
});
_dataToView.Add(new Dictionary()
{
{"Id", 2},
{"Min", 3},
{"Max", 4},
});
_dataToView.Add(new Dictionary()
{
{"Id", 3},
{"Min", 4},
{"Max", 5},
});
}
return _dataToView;
}
}
}