Code Requirements
The datagrid as displayed below requires the following code:
XML
@inject IContactsService Service
<EZTable Recordset="@recordset" TModel="Contact">
<EZTableColumn Field="@nameof(context.Id)" Hyperlink="EditContact/{0}" />
<EZTableColumn Field="@nameof(context.Name)" />
<EZTableColumn Field="@nameof(context.Birthday)" />
<EZTableColumn Field="@nameof(context.Address)" />
<EZTableColumn Field="@nameof(context.PostalCode)" />
<EZTableColumn Field="@nameof(context.City)" />
</EZTable>
@code {
private EZRecordset<Contact>? recordset;
protected override void OnInitialized()
{
recordset = new(new EZRecordsetConfiguration<Contact>(Service));
base.OnInitialized();
}
}
List of Contacts
| Id | Name | Birthday | Address | Postal code | City |
|---|---|---|---|---|---|
| 10001 | Noah Jansen | 8/19/2017 | Kerkstraat 66 | 6747 AB | Haarlem |
| 10002 | Julia de Boer | 1/4/2018 | Beukenlaan 88 | 4502 JK | Amsterdam |
| 10003 | Zoë van Leeuwen | 2/20/1989 | Sportlaan 73 | 5265 BC | Den Haag |
| 10004 | Sem Hendriks | 7/3/2018 | Molenstraat 28 | 7083 AB | Groningen |
| 10005 | Lotte Smit | 10/20/1998 | Dorpsstraat 55 | 3966 UV | Leeuwarden |
| 10006 | Lotte de Vries | 4/26/1990 | Markt 53 | 6268 DE | Leeuwarden |
| 10007 | Tess Hendriks | 3/24/1969 | Stationsweg 12 | 8756 EF | Nijmegen |
| 10008 | Lucas de Jong | 4/3/1964 | Beukenlaan 16 | 2716 AB | Nijmegen |
| 10009 | Sara Bos | 8/11/1997 | Kerkstraat 61 | 6577 VW | Eindhoven |
| 10010 | Liam Smit | 5/26/2004 | Eikenlaan 89 | 5796 RS | Vlissigen |
| 10011 | Mila Vos | 1/13/1981 | Kastanjelaan 32 | 5251 EF | Lelystad |
| 10012 | Daan Smit | 3/18/1966 | Eikenlaan 16 | 7186 GH | Amsterdam |
| 10013 | Luuk de Boer | 5/7/1974 | Industrieweg 62 | 3891 UV | Apeldoorn |
| 10014 | Lucas Jansen | 10/12/2018 | Kerkstraat 54 | 5551 LM | Groningen |
| 10015 | Sem Peters | 7/25/1957 | Nieuwstraat 11 | 3570 NO | Apeldoorn |
| 10016 | Finn Visser | 9/2/1965 | Beatrixstraat 17 | 5837 FG | Breda |
| 10017 | Julia Jansen | 8/8/1955 | Sportlaan 44 | 8827 JK | Groningen |
| 10018 | Yara Peters | 1/22/1988 | Kastanjelaan 60 | 2374 AB | Groningen |
| 10019 | Sara Jansen | 4/8/2015 | Kastanjelaan 20 | 5928 DE | Leeuwarden |
| 10020 | Luuk Smit | 5/3/2011 | Stationsweg 95 | 3835 IJ | Zwolle |
| 10021 | Bram van den Berg | 7/4/1968 | Kastanjelaan 11 | 4447 UV | Breda |
| 10022 | Liam Bos | 2/9/1990 | Stationsweg 51 | 8954 JK | Utrecht |
| 10023 | Liam de Boer | 8/13/1981 | Grote Markt 21 | 9924 MN | Eindhoven |
| 10024 | Sem de Vries | 10/4/1993 | Industrieweg 14 | 4042 LM | Nijmegen |
| 10025 | Julia Jansen | 7/27/2004 | Dorpsstraat 93 | 5639 DE | Amsterdam |
| 10026 | Sara de Boer | 7/13/1968 | Stationsweg 85 | 6429 AB | Zwolle |
| 10027 | Mees Visser | 8/18/1971 | Grote Markt 70 | 7399 YZ | Eindhoven |
| 10028 | Mees Visser | 11/10/1965 | Industrieweg 15 | 9630 TU | Haarlem |
| 10029 | Mila Peters | 5/17/2009 | Eikenlaan 94 | 6066 IJ | Arnhem |
| 10030 | Nora Bakker | 3/10/1958 | Dorpsstraat 49 | 4486 DE | Enschede |
| 10031 | Sophie Meijer | 5/12/1982 | Nieuwstraat 43 | 1698 UV | Zwolle |
| 10032 | Emma Smit | 6/14/2004 | Grote Markt 85 | 9825 WX | Apeldoorn |
| 10033 | Sem de Jong | 6/9/2008 | Stationsweg 66 | 3374 PQ | Leeuwarden |
| 10034 | Tess Meijer | 1/15/1997 | Julianastraat 34 | 7389 XY | Enschede |
| 10035 | Sara Jansen | 5/16/1952 | Beatrixstraat 37 | 6585 KL | Amsterdam |
| 10036 | Lotte Jansen | 11/27/1969 | Nieuwstraat 22 | 3656 JK | Zwolle |