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 | Levi de Jong | 1/15/1999 | Julianastraat 28 | 2748 JK | Utrecht |
| 10002 | Lucas de Jong | 1/19/1963 | Sportlaan 82 | 3970 EF | Utrecht |
| 10003 | Liam Smit | 7/1/1960 | Eikenlaan 47 | 3833 LM | Amsterdam |
| 10004 | Sara Mulder | 2/2/1965 | Parallelweg 83 | 9856 UV | Apeldoorn |
| 10005 | Mila de Jong | 1/4/1978 | Industrieweg 34 | 3857 UV | Amsterdam |
| 10006 | Sophie de Jong | 10/2/1969 | Molenstraat 48 | 5379 KL | Maastricht |
| 10007 | Yara Peters | 9/19/1990 | Julianastraat 39 | 1830 CD | Assen |
| 10008 | Daan Mulder | 1/7/1973 | Eikenlaan 6 | 2252 XY | Maastricht |
| 10009 | Lotte Bos | 3/15/1985 | Emmastraat 21 | 8207 WX | Breda |
| 10010 | Luuk de Boer | 7/5/1996 | Parallelweg 50 | 9828 HI | Den Haag |
| 10011 | Sara Meijer | 2/23/1954 | Kastanjelaan 95 | 5672 GH | Almere |
| 10012 | Yara Meijer | 3/14/2017 | Rembrandtstraat 40 | 2418 UV | Leeuwarden |
| 10013 | Nora de Vries | 8/3/1952 | Julianastraat 42 | 5306 FG | Nijmegen |
| 10014 | Nora Smit | 4/9/1966 | Stationsweg 91 | 6059 JK | Almere |
| 10015 | Noah Vos | 5/21/2006 | Schoolstraat 43 | 8608 ST | Almere |
| 10016 | Daan de Boer | 7/2/1984 | Molenstraat 98 | 3419 IJ | Maastricht |
| 10017 | Sara Meijer | 8/17/1957 | Stationsweg 88 | 4200 YZ | Maastricht |
| 10018 | Emma Meijer | 1/8/1961 | Molenstraat 56 | 5472 IJ | Leeuwarden |
| 10019 | Sara Bos | 11/19/1977 | Molenstraat 79 | 5166 ST | Groningen |
| 10020 | Lucas Meijer | 8/6/1950 | Grote Markt 35 | 9151 NO | Apeldoorn |
| 10021 | Sem Bos | 4/25/1968 | Stationsweg 66 | 9863 BC | Leeuwarden |
| 10022 | Bram Meijer | 8/11/1977 | Beatrixstraat 65 | 7824 BC | Enschede |
| 10023 | Noah Bakker | 10/11/1983 | Grote Markt 70 | 5333 TU | Assen |
| 10024 | Bram Visser | 1/3/1963 | Industrieweg 68 | 1485 GH | Breda |
| 10025 | Lucas Mulder | 11/21/1999 | Julianastraat 69 | 5032 TU | Almere |
| 10026 | Sophie Jansen | 5/18/1987 | Beatrixstraat 76 | 1484 WX | Groningen |
| 10027 | Zoë Smit | 7/9/1998 | Emmastraat 84 | 5031 RS | Enschede |
| 10028 | Liam Bos | 10/21/2018 | Rembrandtstraat 12 | 5698 XY | Almere |
| 10029 | Finn van Leeuwen | 8/4/1978 | Kastanjelaan 17 | 3506 IJ | Leeuwarden |
| 10030 | Finn Mulder | 8/8/1963 | Parallelweg 66 | 3721 TU | Enschede |
| 10031 | Julia de Jong | 1/17/2007 | Grote Markt 50 | 3669 CD | Maastricht |
| 10032 | Julia Bakker | 10/6/1956 | Stationsweg 84 | 8587 GH | Maastricht |
| 10033 | Bram Jansen | 8/6/2001 | Wilhelminastraat 70 | 9414 JK | Vlissigen |
| 10034 | Sara Mulder | 6/14/1976 | Beukenlaan 70 | 6445 FG | Arnhem |
| 10035 | Mees Hendriks | 3/19/2008 | Beukenlaan 90 | 4648 QR | Den Bosch |
| 10036 | Nora van Leeuwen | 5/6/1950 | Kerkstraat 45 | 8842 AB | Apeldoorn |