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 | Julia van Leeuwen | 2/10/1981 | Julianastraat 57 | 1130 AB | Nijmegen |
| 10002 | Levi de Vries | 3/20/2002 | Molenstraat 34 | 1407 EF | Enschede |
| 10003 | Sem Hendriks | 3/19/1990 | Stationsweg 62 | 8431 AB | Almere |
| 10004 | Luuk Mulder | 9/21/1995 | Rembrandtstraat 86 | 4965 DE | Den Bosch |
| 10005 | Zoë Hendriks | 9/17/1976 | Wilhelminastraat 24 | 1356 AB | Den Bosch |
| 10006 | Daan Meijer | 4/1/1982 | Kerkstraat 49 | 7730 KL | Nijmegen |
| 10007 | Sara van den Berg | 2/2/1990 | Beatrixstraat 30 | 1036 XY | Maastricht |
| 10008 | Bram Vos | 1/2/2004 | Industrieweg 89 | 9204 ST | Apeldoorn |
| 10009 | Lotte Mulder | 6/17/1972 | Schoolstraat 10 | 7769 RS | Assen |
| 10010 | Lucas Smit | 5/1/2010 | Grote Markt 40 | 9805 JK | Breda |
| 10011 | Luuk de Jong | 5/24/1978 | Schoolstraat 74 | 8715 ST | Amsterdam |
| 10012 | Lotte Hendriks | 1/8/2006 | Prins Bernhardstraat 47 | 9155 MN | Amsterdam |
| 10013 | Daan Mulder | 9/4/1956 | Kastanjelaan 17 | 1323 GH | Utrecht |
| 10014 | Mees van den Berg | 4/22/1976 | Beatrixstraat 97 | 8958 AB | Lelystad |
| 10015 | Mees de Vries | 3/19/1998 | Kerkstraat 17 | 9889 JK | Vlissigen |
| 10016 | Finn de Boer | 11/24/2006 | Rembrandtstraat 80 | 5201 BC | Lelystad |
| 10017 | Lucas Hendriks | 7/13/1955 | Eikenlaan 51 | 2690 UV | Apeldoorn |
| 10018 | Luuk Visser | 1/24/1977 | Beatrixstraat 92 | 1857 NO | Amsterdam |
| 10019 | Nora de Boer | 1/21/1994 | Eikenlaan 94 | 8990 RS | Utrecht |
| 10020 | Mila Bos | 11/18/2006 | Molenstraat 53 | 4487 RS | Almere |
| 10021 | Julia de Boer | 7/24/1968 | Julianastraat 24 | 5985 WX | Enschede |
| 10022 | Lucas de Jong | 3/2/1997 | Kastanjelaan 76 | 9081 NO | Zwolle |
| 10023 | Levi Visser | 4/9/1977 | Stationsweg 32 | 7694 BC | Almere |
| 10024 | Nora de Jong | 10/2/1968 | Markt 15 | 5814 AB | Assen |
| 10025 | Lucas Bos | 3/2/1963 | Schoolstraat 99 | 3193 WX | Almere |
| 10026 | Yara van den Berg | 1/18/1956 | Dorpsstraat 55 | 5823 AB | Den Haag |
| 10027 | Nora Smit | 7/9/1981 | Kastanjelaan 44 | 7867 PQ | Vlissigen |
| 10028 | Noah van Leeuwen | 7/11/2013 | Emmastraat 12 | 6602 IJ | Lelystad |
| 10029 | Tess Mulder | 1/26/1950 | Kastanjelaan 5 | 9027 GH | Leeuwarden |
| 10030 | Nora de Vries | 3/10/1954 | Emmastraat 91 | 5030 ST | Zwolle |
| 10031 | Luuk de Jong | 9/11/1960 | Nieuwstraat 74 | 7974 JK | Eindhoven |
| 10032 | Liam Mulder | 1/17/1988 | Wilhelminastraat 75 | 7484 ST | Lelystad |
| 10033 | Daan de Jong | 11/2/1962 | Rembrandtstraat 65 | 1768 OP | Maastricht |
| 10034 | Lotte Visser | 11/18/1987 | Prins Bernhardstraat 39 | 1788 QR | Assen |
| 10035 | Sophie de Boer | 11/17/2012 | Molenstraat 53 | 8908 IJ | Breda |
| 10036 | Liam Bakker | 3/16/1979 | Eikenlaan 85 | 1510 FG | Utrecht |