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 | Yara Bos | 3/21/1960 | Stationsweg 17 | 5653 EF | Haarlem |
| 10002 | Julia Smit | 11/25/1962 | Schoolstraat 55 | 3905 UV | Eindhoven |
| 10003 | Sophie Bos | 5/18/1950 | Julianastraat 48 | 8222 FG | Breda |
| 10004 | Bram Visser | 7/20/2004 | Eikenlaan 33 | 7419 UV | Eindhoven |
| 10005 | Sem Bos | 1/19/1960 | Wilhelminastraat 18 | 7815 QR | Den Bosch |
| 10006 | Liam Bakker | 9/22/2010 | Wilhelminastraat 51 | 9234 IJ | Apeldoorn |
| 10007 | Tess Bos | 4/25/1969 | Prins Bernhardstraat 51 | 6814 JK | Breda |
| 10008 | Julia Peters | 5/10/1952 | Prins Bernhardstraat 47 | 2131 UV | Almere |
| 10009 | Zoë Bakker | 10/10/2001 | Dorpsstraat 9 | 2782 RS | Den Haag |
| 10010 | Sophie Smit | 7/7/1962 | Industrieweg 42 | 9162 QR | Almere |
| 10011 | Nora Peters | 9/18/1999 | Markt 24 | 5802 EF | Amsterdam |
| 10012 | Sophie Visser | 1/5/1995 | Wilhelminastraat 89 | 3290 VW | Breda |
| 10013 | Sara de Boer | 5/4/2010 | Stationsweg 88 | 7907 UV | Maastricht |
| 10014 | Noah Jansen | 9/26/1957 | Molenstraat 68 | 9022 JK | Haarlem |
| 10015 | Finn Smit | 1/14/1986 | Julianastraat 52 | 8147 YZ | Den Bosch |
| 10016 | Levi Hendriks | 5/11/2006 | Julianastraat 97 | 1601 XY | Utrecht |
| 10017 | Mees de Boer | 8/26/1978 | Schoolstraat 65 | 1736 GH | Vlissigen |
| 10018 | Tess de Groot | 7/3/2004 | Molenstraat 81 | 7763 NO | Eindhoven |
| 10019 | Liam Vos | 8/8/1963 | Wilhelminastraat 45 | 5006 UV | Vlissigen |
| 10020 | Mees van Leeuwen | 1/27/2016 | Kerkstraat 85 | 7850 IJ | Almere |
| 10021 | Bram de Vries | 2/2/1981 | Industrieweg 92 | 9708 NO | Groningen |
| 10022 | Levi Peters | 10/11/1957 | Julianastraat 9 | 6136 LM | Maastricht |
| 10023 | Lucas Vos | 7/2/1990 | Grote Markt 26 | 2783 FG | Leeuwarden |
| 10024 | Noah de Jong | 8/21/2000 | Parallelweg 31 | 4281 YZ | Haarlem |
| 10025 | Levi Mulder | 6/22/2000 | Kastanjelaan 51 | 8528 EF | Vlissigen |
| 10026 | Zoë de Vries | 4/21/1991 | Beatrixstraat 44 | 9740 LM | Zwolle |
| 10027 | Liam Bos | 7/1/1982 | Rembrandtstraat 38 | 3011 DE | Haarlem |
| 10028 | Noah de Boer | 3/20/1969 | Stationsweg 70 | 1533 WX | Almere |
| 10029 | Luuk de Groot | 6/20/1972 | Stationsweg 4 | 9920 JK | Breda |
| 10030 | Daan Bos | 9/23/1976 | Markt 20 | 2462 PQ | Breda |
| 10031 | Sem van Leeuwen | 6/2/2002 | Wilhelminastraat 89 | 1420 FG | Nijmegen |
| 10032 | Noah Vos | 9/14/1985 | Schoolstraat 94 | 2196 TU | Den Bosch |
| 10033 | Mila de Vries | 8/14/1958 | Parallelweg 28 | 9399 FG | Maastricht |
| 10034 | Bram Peters | 9/20/1961 | Nieuwstraat 78 | 1318 CD | Den Bosch |
| 10035 | Nora Hendriks | 5/14/1991 | Industrieweg 38 | 7650 LM | Maastricht |
| 10036 | Liam Visser | 7/12/1984 | Eikenlaan 4 | 7085 WX | Lelystad |