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 | Lucas Vos | 6/8/1985 | Sportlaan 60 | 3305 FG | Apeldoorn |
| 10002 | Daan Bos | 5/21/1987 | Schoolstraat 48 | 9831 HI | Groningen |
| 10003 | Lotte Mulder | 8/16/2001 | Industrieweg 45 | 8238 CD | Vlissigen |
| 10004 | Nora Mulder | 1/11/2007 | Emmastraat 11 | 3979 OP | Lelystad |
| 10005 | Mees van Leeuwen | 7/1/1972 | Emmastraat 91 | 8464 KL | Enschede |
| 10006 | Mees de Vries | 6/2/1960 | Nieuwstraat 24 | 9264 DE | Almere |
| 10007 | Sophie Bakker | 5/2/2009 | Dorpsstraat 22 | 3424 QR | Almere |
| 10008 | Luuk Vos | 5/27/1975 | Molenstraat 58 | 1368 PQ | Groningen |
| 10009 | Liam Visser | 6/14/1984 | Sportlaan 71 | 2904 XY | Maastricht |
| 10010 | Sophie Mulder | 7/17/1985 | Industrieweg 22 | 8872 HI | Apeldoorn |
| 10011 | Sara Peters | 4/7/2014 | Nieuwstraat 86 | 1576 NO | Utrecht |
| 10012 | Finn de Groot | 6/2/2016 | Schoolstraat 66 | 1525 BC | Breda |
| 10013 | Sem de Boer | 11/1/2000 | Prins Bernhardstraat 33 | 1825 ST | Eindhoven |
| 10014 | Bram Visser | 1/16/2009 | Dorpsstraat 65 | 3742 TU | Eindhoven |
| 10015 | Yara Hendriks | 7/3/2006 | Beukenlaan 52 | 7310 LM | Utrecht |
| 10016 | Zoë de Jong | 6/15/1967 | Nieuwstraat 55 | 3917 MN | Leeuwarden |
| 10017 | Julia Smit | 4/13/2014 | Grote Markt 50 | 3957 OP | Nijmegen |
| 10018 | Mila Vos | 4/2/1953 | Kerkstraat 63 | 4852 ST | Utrecht |
| 10019 | Yara Mulder | 7/15/1984 | Industrieweg 72 | 2999 MN | Groningen |
| 10020 | Levi de Boer | 9/10/1968 | Emmastraat 50 | 7132 XY | Leeuwarden |
| 10021 | Sara de Boer | 7/9/2014 | Eikenlaan 34 | 7227 QR | Breda |
| 10022 | Lotte Vos | 4/6/2004 | Molenstraat 83 | 2090 GH | Nijmegen |
| 10023 | Sara Mulder | 2/10/1969 | Schoolstraat 61 | 3304 MN | Den Haag |
| 10024 | Lucas Smit | 6/3/2006 | Beukenlaan 64 | 2010 EF | Enschede |
| 10025 | Zoë Visser | 2/2/2000 | Kastanjelaan 71 | 9302 YZ | Vlissigen |
| 10026 | Nora de Vries | 1/14/1993 | Julianastraat 1 | 8887 BC | Assen |
| 10027 | Levi Mulder | 11/17/1964 | Julianastraat 48 | 6169 OP | Groningen |
| 10028 | Sara Visser | 11/13/2018 | Rembrandtstraat 39 | 5336 DE | Breda |
| 10029 | Zoë de Jong | 1/27/2005 | Parallelweg 92 | 7363 PQ | Apeldoorn |
| 10030 | Mees de Boer | 7/3/1951 | Dorpsstraat 43 | 3618 JK | Almere |
| 10031 | Yara de Groot | 5/15/1980 | Kerkstraat 47 | 8571 WX | Zwolle |
| 10032 | Emma Mulder | 10/25/1996 | Kastanjelaan 48 | 5277 DE | Breda |
| 10033 | Emma Mulder | 1/17/1995 | Markt 91 | 2563 PQ | Almere |
| 10034 | Emma van Leeuwen | 2/1/1991 | Eikenlaan 40 | 8448 KL | Enschede |
| 10035 | Mees de Jong | 3/14/1989 | Nieuwstraat 91 | 9179 PQ | Vlissigen |
| 10036 | Lucas de Boer | 9/15/1957 | Kerkstraat 89 | 6611 HI | Enschede |