Version 19.4.0.47
@page "/test-grid"
@using Syncfusion.Blazor.Grids
<h3>Testing</h3>
<SfGrid DataSource="Items" AllowFiltering="true">
<GridTemplates>
<DetailTemplate>
@{
var item = (context as Item);
}
<span>@item.Value</span>
</DetailTemplate>
</GridTemplates>
</SfGrid>
@code {
public List<Item> Items = new List<Item>()
{
new Item(){Key = "Key 1", Value = "Value1" },
new Item(){Key = "Key 2", Value = "Value2" }
};
public class Item
{
public string Key { get; set; }
public string Value { get; set; }
}
}