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 Jansen | 7/2/1959 | Grote Markt 94 | 3630 DE | Almere |
| 10002 | Bram van Leeuwen | 6/13/1998 | Julianastraat 80 | 6619 CD | Nijmegen |
| 10003 | Mees Meijer | 6/17/1987 | Prins Bernhardstraat 34 | 5857 YZ | Den Haag |
| 10004 | Luuk de Groot | 3/3/2017 | Rembrandtstraat 28 | 6767 WX | Den Haag |
| 10005 | Finn de Groot | 11/24/2005 | Schoolstraat 1 | 2802 OP | Lelystad |
| 10006 | Tess van Leeuwen | 3/25/1959 | Beatrixstraat 55 | 3656 YZ | Groningen |
| 10007 | Julia Bos | 10/1/1953 | Julianastraat 54 | 8567 TU | Arnhem |
| 10008 | Mila Smit | 10/12/1986 | Dorpsstraat 73 | 5378 HI | Breda |
| 10009 | Lucas Jansen | 5/24/1950 | Molenstraat 51 | 9338 VW | Almere |
| 10010 | Mila van Leeuwen | 3/19/2009 | Kastanjelaan 36 | 8986 BC | Apeldoorn |
| 10011 | Sophie de Boer | 9/25/1979 | Dorpsstraat 76 | 8797 EF | Arnhem |
| 10012 | Noah Jansen | 2/25/2010 | Emmastraat 96 | 9839 VW | Maastricht |
| 10013 | Lotte Bos | 2/20/1982 | Beukenlaan 72 | 6497 GH | Eindhoven |
| 10014 | Emma de Groot | 1/8/1995 | Nieuwstraat 29 | 2833 LM | Zwolle |
| 10015 | Luuk de Vries | 11/15/2017 | Dorpsstraat 95 | 1274 TU | Nijmegen |
| 10016 | Julia de Boer | 11/16/1967 | Grote Markt 17 | 2828 MN | Amsterdam |
| 10017 | Finn Peters | 6/9/1951 | Eikenlaan 86 | 8701 QR | Den Bosch |
| 10018 | Nora Meijer | 3/11/2009 | Wilhelminastraat 37 | 8804 VW | Enschede |
| 10019 | Sem Vos | 9/20/1986 | Schoolstraat 23 | 8527 JK | Lelystad |
| 10020 | Tess de Vries | 2/5/1983 | Markt 89 | 4092 KL | Almere |
| 10021 | Zoë de Boer | 10/10/1971 | Kerkstraat 34 | 3042 NO | Haarlem |
| 10022 | Zoë Meijer | 5/27/2008 | Parallelweg 48 | 9569 JK | Lelystad |
| 10023 | Nora de Groot | 1/4/1959 | Beatrixstraat 65 | 3595 LM | Den Haag |
| 10024 | Yara Smit | 7/3/1957 | Beukenlaan 38 | 9596 AB | Almere |
| 10025 | Tess Hendriks | 8/2/2013 | Kastanjelaan 5 | 7829 XY | Haarlem |
| 10026 | Nora de Boer | 1/24/2003 | Dorpsstraat 41 | 1886 GH | Zwolle |
| 10027 | Mees van den Berg | 4/25/1974 | Dorpsstraat 35 | 3197 WX | Arnhem |
| 10028 | Finn Visser | 2/8/1959 | Prins Bernhardstraat 68 | 5488 DE | Breda |
| 10029 | Yara Vos | 10/11/1964 | Rembrandtstraat 84 | 3054 GH | Den Haag |
| 10030 | Lotte van Leeuwen | 7/14/1971 | Prins Bernhardstraat 72 | 5069 FG | Zwolle |
| 10031 | Zoë Bos | 4/23/1989 | Sportlaan 74 | 6747 TU | Apeldoorn |
| 10032 | Liam Bakker | 4/2/1981 | Wilhelminastraat 91 | 6742 FG | Almere |
| 10033 | Luuk Jansen | 4/9/2014 | Kastanjelaan 72 | 4277 TU | Enschede |
| 10034 | Sara Meijer | 6/21/1963 | Sportlaan 12 | 3705 OP | Lelystad |
| 10035 | Zoë de Boer | 10/10/1952 | Julianastraat 11 | 7128 VW | Den Haag |
| 10036 | Sara Vos | 7/3/2007 | Industrieweg 89 | 6466 VW | Enschede |