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 | Luuk Mulder | 1/24/1999 | Molenstraat 47 | 3047 LM | Nijmegen |
| 10002 | Noah Hendriks | 11/13/1963 | Nieuwstraat 5 | 4833 YZ | Vlissigen |
| 10003 | Tess de Vries | 8/21/1982 | Dorpsstraat 62 | 5183 KL | Zwolle |
| 10004 | Mees de Jong | 1/2/1953 | Dorpsstraat 5 | 7675 TU | Eindhoven |
| 10005 | Liam de Vries | 1/18/1998 | Prins Bernhardstraat 87 | 3404 WX | Zwolle |
| 10006 | Mees Jansen | 4/15/1997 | Parallelweg 3 | 2862 TU | Utrecht |
| 10007 | Julia de Boer | 9/18/2010 | Wilhelminastraat 18 | 2980 VW | Groningen |
| 10008 | Liam van Leeuwen | 3/19/1968 | Kastanjelaan 61 | 4430 PQ | Arnhem |
| 10009 | Zoë de Vries | 4/20/2008 | Beatrixstraat 92 | 4720 WX | Eindhoven |
| 10010 | Liam Hendriks | 8/9/1982 | Emmastraat 35 | 2236 EF | Amsterdam |
| 10011 | Liam Bakker | 9/25/1995 | Schoolstraat 74 | 9124 TU | Arnhem |
| 10012 | Luuk Hendriks | 11/10/1982 | Emmastraat 47 | 1594 QR | Enschede |
| 10013 | Sem van den Berg | 9/8/2005 | Emmastraat 84 | 9635 RS | Haarlem |
| 10014 | Tess de Jong | 5/7/2004 | Industrieweg 32 | 5387 EF | Nijmegen |
| 10015 | Nora Meijer | 7/8/1959 | Industrieweg 44 | 7639 MN | Lelystad |
| 10016 | Sem van Leeuwen | 3/10/1966 | Prins Bernhardstraat 2 | 4501 PQ | Almere |
| 10017 | Zoë de Groot | 3/6/1995 | Emmastraat 77 | 4068 GH | Den Haag |
| 10018 | Yara Meijer | 11/14/2000 | Wilhelminastraat 77 | 1303 QR | Almere |
| 10019 | Sophie Smit | 2/17/1970 | Dorpsstraat 68 | 8565 RS | Breda |
| 10020 | Zoë Hendriks | 8/21/1950 | Dorpsstraat 45 | 5803 GH | Nijmegen |
| 10021 | Emma van Leeuwen | 11/26/2013 | Grote Markt 32 | 2279 WX | Eindhoven |
| 10022 | Daan Hendriks | 7/7/1984 | Beatrixstraat 75 | 1237 XY | Amsterdam |
| 10023 | Finn de Boer | 9/14/1989 | Nieuwstraat 18 | 1142 MN | Nijmegen |
| 10024 | Finn van den Berg | 6/2/2001 | Schoolstraat 88 | 7610 OP | Groningen |
| 10025 | Nora Bos | 6/2/1974 | Grote Markt 14 | 5552 AB | Haarlem |
| 10026 | Julia de Vries | 1/11/1986 | Kerkstraat 32 | 7739 MN | Utrecht |
| 10027 | Noah Peters | 10/13/1985 | Beukenlaan 97 | 6586 TU | Enschede |
| 10028 | Luuk Peters | 5/4/2005 | Schoolstraat 49 | 4417 NO | Enschede |
| 10029 | Nora Smit | 8/17/2017 | Industrieweg 68 | 2318 TU | Nijmegen |
| 10030 | Liam Visser | 2/7/1994 | Grote Markt 40 | 4896 VW | Almere |
| 10031 | Sophie Peters | 6/2/2003 | Kastanjelaan 95 | 6942 PQ | Den Bosch |
| 10032 | Lotte Peters | 2/26/1968 | Eikenlaan 49 | 8298 PQ | Vlissigen |
| 10033 | Emma Bakker | 8/15/2012 | Kerkstraat 21 | 9651 TU | Maastricht |
| 10034 | Tess Hendriks | 5/15/1997 | Stationsweg 13 | 7213 UV | Utrecht |
| 10035 | Sara Hendriks | 1/24/1950 | Julianastraat 84 | 5071 JK | Nijmegen |
| 10036 | Daan Peters | 7/6/2010 | Molenstraat 33 | 2919 UV | Amsterdam |