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 | Lotte Mulder | 3/10/1959 | Kastanjelaan 14 | 8639 FG | Den Haag |
| 10002 | Bram Bos | 2/26/2000 | Rembrandtstraat 65 | 7139 CD | Groningen |
| 10003 | Luuk de Groot | 8/11/1983 | Julianastraat 45 | 3567 QR | Apeldoorn |
| 10004 | Sophie van den Berg | 6/14/1975 | Molenstraat 83 | 8212 JK | Zwolle |
| 10005 | Yara de Jong | 7/12/2010 | Molenstraat 27 | 1086 KL | Vlissigen |
| 10006 | Nora de Groot | 6/3/1984 | Eikenlaan 82 | 4084 OP | Nijmegen |
| 10007 | Julia Vos | 5/4/1987 | Grote Markt 7 | 5847 HI | Apeldoorn |
| 10008 | Noah Peters | 7/7/2006 | Grote Markt 79 | 1766 VW | Breda |
| 10009 | Mees de Vries | 10/25/1993 | Eikenlaan 59 | 1058 GH | Den Haag |
| 10010 | Mila de Boer | 1/12/2006 | Wilhelminastraat 43 | 5222 BC | Den Haag |
| 10011 | Mees Bos | 2/3/1958 | Rembrandtstraat 26 | 6909 RS | Nijmegen |
| 10012 | Daan de Vries | 8/4/2014 | Wilhelminastraat 14 | 4677 PQ | Den Haag |
| 10013 | Lotte Bakker | 1/5/2002 | Emmastraat 16 | 6542 AB | Eindhoven |
| 10014 | Luuk Mulder | 10/12/2012 | Eikenlaan 4 | 3626 ST | Almere |
| 10015 | Julia Meijer | 9/14/1984 | Prins Bernhardstraat 83 | 9000 FG | Den Haag |
| 10016 | Sophie de Jong | 4/6/1962 | Molenstraat 13 | 2119 YZ | Utrecht |
| 10017 | Sem Bos | 9/21/1973 | Schoolstraat 93 | 2987 JK | Apeldoorn |
| 10018 | Tess Jansen | 6/15/1976 | Emmastraat 37 | 1331 WX | Vlissigen |
| 10019 | Nora Peters | 1/1/2002 | Prins Bernhardstraat 5 | 2251 VW | Lelystad |
| 10020 | Noah Vos | 3/23/2018 | Nieuwstraat 57 | 9710 PQ | Maastricht |
| 10021 | Luuk van Leeuwen | 6/2/1953 | Dorpsstraat 38 | 4733 UV | Leeuwarden |
| 10022 | Luuk Visser | 6/8/1967 | Wilhelminastraat 9 | 6814 HI | Eindhoven |
| 10023 | Lotte de Vries | 4/19/1982 | Nieuwstraat 81 | 2732 PQ | Almere |
| 10024 | Liam Bos | 1/12/1993 | Sportlaan 35 | 4730 HI | Nijmegen |
| 10025 | Julia Bos | 6/2/1992 | Parallelweg 22 | 6822 ST | Den Haag |
| 10026 | Sophie Visser | 4/19/1995 | Stationsweg 62 | 4191 MN | Leeuwarden |
| 10027 | Lucas Peters | 9/19/1996 | Wilhelminastraat 26 | 4893 QR | Assen |
| 10028 | Yara Peters | 5/17/1955 | Emmastraat 66 | 8746 ST | Breda |
| 10029 | Mila Peters | 9/11/2010 | Dorpsstraat 26 | 1549 ST | Eindhoven |
| 10030 | Mees Bos | 7/1/1953 | Nieuwstraat 99 | 9205 XY | Apeldoorn |
| 10031 | Nora Visser | 7/11/1981 | Nieuwstraat 67 | 1465 BC | Apeldoorn |
| 10032 | Sophie de Jong | 8/24/1979 | Rembrandtstraat 43 | 6051 CD | Den Haag |
| 10033 | Lotte Peters | 8/6/2018 | Schoolstraat 56 | 8432 TU | Zwolle |
| 10034 | Sara Peters | 4/23/2011 | Rembrandtstraat 59 | 6888 FG | Groningen |
| 10035 | Tess Meijer | 9/2/1957 | Rembrandtstraat 75 | 2395 QR | Apeldoorn |
| 10036 | Yara Bakker | 4/9/2011 | Industrieweg 13 | 5316 CD | Groningen |