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 | Lotte Jansen | 8/19/1998 | Emmastraat 84 | 6608 VW | Groningen |
| 10002 | Noah Peters | 11/2/1962 | Wilhelminastraat 51 | 2388 QR | Breda |
| 10003 | Mila van Leeuwen | 9/10/1957 | Beukenlaan 48 | 7009 CD | Haarlem |
| 10004 | Emma de Groot | 9/26/2007 | Julianastraat 18 | 4721 YZ | Haarlem |
| 10005 | Daan de Jong | 11/8/2004 | Nieuwstraat 47 | 8410 VW | Eindhoven |
| 10006 | Levi Bos | 7/4/1981 | Molenstraat 25 | 2856 QR | Eindhoven |
| 10007 | Finn de Groot | 5/24/1980 | Emmastraat 46 | 8253 FG | Nijmegen |
| 10008 | Levi de Vries | 1/19/1982 | Beatrixstraat 99 | 8811 YZ | Enschede |
| 10009 | Mila Bos | 6/4/1950 | Wilhelminastraat 25 | 8917 QR | Maastricht |
| 10010 | Liam Vos | 4/7/1965 | Beatrixstraat 88 | 6155 RS | Groningen |
| 10011 | Sem Vos | 11/21/2016 | Sportlaan 19 | 2829 OP | Zwolle |
| 10012 | Emma van den Berg | 5/25/1982 | Beukenlaan 68 | 8417 VW | Arnhem |
| 10013 | Bram Vos | 4/19/1977 | Beatrixstraat 85 | 1569 MN | Zwolle |
| 10014 | Noah Mulder | 7/15/1977 | Molenstraat 51 | 5691 TU | Apeldoorn |
| 10015 | Finn Bos | 5/21/1970 | Kastanjelaan 83 | 5685 TU | Groningen |
| 10016 | Daan Vos | 2/1/1990 | Julianastraat 32 | 5196 KL | Den Bosch |
| 10017 | Emma de Boer | 5/9/2015 | Sportlaan 93 | 3647 AB | Den Bosch |
| 10018 | Tess de Jong | 1/18/1993 | Stationsweg 86 | 8226 ST | Groningen |
| 10019 | Tess Bakker | 10/9/1962 | Rembrandtstraat 18 | 5198 VW | Maastricht |
| 10020 | Sem Mulder | 11/14/1979 | Stationsweg 72 | 7635 BC | Almere |
| 10021 | Lotte Vos | 5/7/1979 | Julianastraat 27 | 1178 VW | Vlissigen |
| 10022 | Mila Mulder | 2/17/2003 | Markt 60 | 9553 XY | Enschede |
| 10023 | Sara Vos | 2/22/2004 | Beatrixstraat 28 | 1766 IJ | Den Haag |
| 10024 | Julia Mulder | 8/21/1972 | Prins Bernhardstraat 53 | 1501 BC | Breda |
| 10025 | Mees de Vries | 4/18/1980 | Emmastraat 62 | 3800 IJ | Den Bosch |
| 10026 | Mila van Leeuwen | 3/9/1964 | Beukenlaan 48 | 6178 OP | Vlissigen |
| 10027 | Mila Visser | 6/9/1973 | Dorpsstraat 99 | 3616 WX | Nijmegen |
| 10028 | Zoë Vos | 6/11/1983 | Parallelweg 80 | 9391 WX | Apeldoorn |
| 10029 | Luuk Meijer | 1/12/1987 | Beatrixstraat 25 | 1956 KL | Utrecht |
| 10030 | Lucas van Leeuwen | 10/26/1953 | Grote Markt 47 | 6132 PQ | Assen |
| 10031 | Lucas Peters | 4/3/1967 | Kastanjelaan 5 | 5553 OP | Amsterdam |
| 10032 | Zoë Bos | 2/11/1950 | Emmastraat 15 | 2143 PQ | Haarlem |
| 10033 | Lucas de Boer | 5/23/2011 | Schoolstraat 80 | 6719 AB | Groningen |
| 10034 | Daan Mulder | 6/16/2014 | Emmastraat 76 | 5721 GH | Leeuwarden |
| 10035 | Yara Bakker | 5/12/2009 | Sportlaan 83 | 9858 VW | Zwolle |
| 10036 | Daan Bos | 9/14/1973 | Industrieweg 33 | 8490 XY | Lelystad |