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 | Mees de Jong | 3/4/1975 | Wilhelminastraat 14 | 1493 HI | Enschede |
| 10002 | Nora van Leeuwen | 7/6/2003 | Molenstraat 37 | 2891 EF | Lelystad |
| 10003 | Mees de Vries | 8/2/1969 | Prins Bernhardstraat 82 | 3310 DE | Apeldoorn |
| 10004 | Nora Vos | 6/27/2007 | Kastanjelaan 8 | 9287 OP | Vlissigen |
| 10005 | Mila Peters | 3/24/2001 | Beatrixstraat 83 | 3342 FG | Nijmegen |
| 10006 | Yara Smit | 3/17/2000 | Stationsweg 38 | 7739 BC | Leeuwarden |
| 10007 | Mila de Vries | 11/20/1951 | Kastanjelaan 16 | 7120 NO | Breda |
| 10008 | Zoë Smit | 2/18/1953 | Stationsweg 19 | 7975 BC | Den Haag |
| 10009 | Sophie de Groot | 8/14/2018 | Stationsweg 67 | 3824 XY | Lelystad |
| 10010 | Finn de Boer | 5/1/1951 | Stationsweg 96 | 3858 CD | Enschede |
| 10011 | Liam de Groot | 9/26/1987 | Beukenlaan 63 | 5491 ST | Assen |
| 10012 | Noah de Boer | 4/1/1978 | Nieuwstraat 54 | 9299 BC | Den Bosch |
| 10013 | Lotte van Leeuwen | 1/8/1996 | Emmastraat 54 | 9312 OP | Enschede |
| 10014 | Daan Visser | 4/20/2014 | Beatrixstraat 37 | 2597 UV | Utrecht |
| 10015 | Emma Peters | 11/10/1970 | Wilhelminastraat 29 | 9298 IJ | Haarlem |
| 10016 | Julia van Leeuwen | 9/20/2017 | Grote Markt 64 | 5736 GH | Almere |
| 10017 | Nora Jansen | 6/2/2009 | Industrieweg 1 | 4153 YZ | Maastricht |
| 10018 | Mees Bakker | 2/9/1989 | Wilhelminastraat 45 | 4611 BC | Lelystad |
| 10019 | Noah Peters | 4/8/2005 | Sportlaan 89 | 4545 QR | Haarlem |
| 10020 | Sara Peters | 7/20/1986 | Schoolstraat 87 | 4093 PQ | Eindhoven |
| 10021 | Julia Hendriks | 7/4/1972 | Schoolstraat 16 | 9968 PQ | Apeldoorn |
| 10022 | Sara Vos | 3/1/1963 | Julianastraat 1 | 5078 LM | Den Haag |
| 10023 | Finn de Groot | 9/5/1978 | Kerkstraat 15 | 3300 HI | Den Bosch |
| 10024 | Mila de Boer | 2/27/1971 | Beatrixstraat 74 | 5652 RS | Enschede |
| 10025 | Mila de Vries | 3/24/2018 | Stationsweg 94 | 5991 PQ | Assen |
| 10026 | Zoë Peters | 6/14/1994 | Beukenlaan 71 | 6863 TU | Almere |
| 10027 | Emma Meijer | 4/15/1989 | Beukenlaan 63 | 4468 AB | Haarlem |
| 10028 | Lotte van den Berg | 3/23/2010 | Schoolstraat 25 | 7379 FG | Haarlem |
| 10029 | Lotte van Leeuwen | 2/11/2006 | Prins Bernhardstraat 83 | 8250 PQ | Den Bosch |
| 10030 | Noah Bakker | 3/23/1962 | Beukenlaan 93 | 6336 FG | Zwolle |
| 10031 | Sara Mulder | 3/9/1974 | Kerkstraat 38 | 8842 FG | Arnhem |
| 10032 | Tess van den Berg | 1/4/1976 | Parallelweg 41 | 9365 WX | Utrecht |
| 10033 | Daan Mulder | 5/27/1980 | Industrieweg 29 | 8776 MN | Leeuwarden |
| 10034 | Luuk Visser | 10/17/1997 | Emmastraat 77 | 2476 FG | Zwolle |
| 10035 | Levi Hendriks | 4/15/1962 | Beukenlaan 53 | 5430 YZ | Leeuwarden |
| 10036 | Mees Vos | 6/12/1996 | Schoolstraat 34 | 2360 WX | Zwolle |