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 Meijer | 7/26/1982 | Industrieweg 74 | 4032 YZ | Breda |
| 10002 | Sara Mulder | 5/19/2000 | Molenstraat 30 | 3757 XY | Maastricht |
| 10003 | Lotte de Vries | 8/14/1970 | Wilhelminastraat 86 | 6998 QR | Zwolle |
| 10004 | Zoë de Jong | 10/23/2001 | Industrieweg 20 | 3809 MN | Haarlem |
| 10005 | Sara van Leeuwen | 3/2/1995 | Dorpsstraat 30 | 9034 KL | Enschede |
| 10006 | Tess Jansen | 2/14/1975 | Rembrandtstraat 43 | 9181 AB | Leeuwarden |
| 10007 | Luuk Smit | 2/21/2000 | Sportlaan 26 | 6410 VW | Maastricht |
| 10008 | Julia de Jong | 10/4/1992 | Parallelweg 80 | 9657 XY | Breda |
| 10009 | Noah Bos | 1/13/2008 | Kerkstraat 51 | 5507 EF | Apeldoorn |
| 10010 | Sara de Jong | 4/1/1998 | Stationsweg 57 | 3405 LM | Nijmegen |
| 10011 | Daan de Boer | 4/14/1984 | Emmastraat 82 | 4583 KL | Apeldoorn |
| 10012 | Mila Bakker | 5/13/2005 | Industrieweg 79 | 5011 LM | Lelystad |
| 10013 | Luuk Hendriks | 11/8/1953 | Markt 54 | 1020 TU | Breda |
| 10014 | Lucas Bos | 3/23/1950 | Molenstraat 83 | 2145 LM | Vlissigen |
| 10015 | Tess Jansen | 11/18/1994 | Markt 88 | 6217 NO | Den Bosch |
| 10016 | Liam Bakker | 10/5/2004 | Nieuwstraat 2 | 6836 JK | Enschede |
| 10017 | Nora Visser | 5/12/1998 | Molenstraat 39 | 7140 GH | Den Bosch |
| 10018 | Luuk van Leeuwen | 11/13/2002 | Kastanjelaan 69 | 1900 RS | Maastricht |
| 10019 | Sara Bakker | 7/14/2014 | Industrieweg 85 | 9429 TU | Arnhem |
| 10020 | Finn Bakker | 3/4/2012 | Nieuwstraat 85 | 6265 DE | Utrecht |
| 10021 | Liam Vos | 10/26/2019 | Industrieweg 48 | 1397 JK | Lelystad |
| 10022 | Liam Vos | 2/20/1974 | Molenstraat 52 | 1705 TU | Lelystad |
| 10023 | Sara Bos | 9/9/1994 | Schoolstraat 75 | 6164 WX | Groningen |
| 10024 | Mila de Vries | 7/8/1972 | Sportlaan 64 | 5134 OP | Amsterdam |
| 10025 | Daan Bakker | 8/9/2015 | Eikenlaan 40 | 5611 YZ | Groningen |
| 10026 | Daan Smit | 6/2/1990 | Dorpsstraat 23 | 6335 XY | Groningen |
| 10027 | Luuk van den Berg | 9/21/1953 | Schoolstraat 17 | 9268 MN | Leeuwarden |
| 10028 | Sem Peters | 1/4/2018 | Markt 17 | 9791 ST | Leeuwarden |
| 10029 | Emma van Leeuwen | 8/6/2008 | Kerkstraat 41 | 1057 UV | Apeldoorn |
| 10030 | Finn de Boer | 11/10/2019 | Markt 34 | 7869 NO | Arnhem |
| 10031 | Sem Visser | 2/26/2004 | Grote Markt 24 | 1673 RS | Groningen |
| 10032 | Bram Bakker | 2/21/1955 | Nieuwstraat 94 | 2942 HI | Nijmegen |
| 10033 | Julia van den Berg | 4/27/1955 | Julianastraat 50 | 1483 QR | Vlissigen |
| 10034 | Liam Vos | 5/6/2019 | Julianastraat 60 | 8633 HI | Eindhoven |
| 10035 | Nora van den Berg | 6/14/1987 | Molenstraat 18 | 5863 RS | Zwolle |
| 10036 | Noah Smit | 11/17/1995 | Parallelweg 53 | 6845 NO | Amsterdam |