Home / List of Contacts

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 Sophie Vos 9/27/1977 Wilhelminastraat 94 1429 ST Utrecht
10002 Bram de Boer 1/11/1981 Beatrixstraat 27 2418 QR Arnhem
10003 Zoë Vos 4/12/1969 Industrieweg 48 9511 XY Assen
10004 Mees de Groot 5/7/1957 Molenstraat 11 8689 NO Apeldoorn
10005 Lotte Bos 5/18/1955 Prins Bernhardstraat 7 9870 UV Enschede
10006 Julia Visser 10/15/1958 Prins Bernhardstraat 82 3324 AB Den Haag
10007 Nora van Leeuwen 6/22/1993 Beukenlaan 99 8683 EF Assen
10008 Yara Visser 1/14/2001 Beatrixstraat 99 4955 EF Haarlem
10009 Levi de Jong 5/10/1985 Molenstraat 35 9688 YZ Eindhoven
10010 Daan Vos 6/27/1964 Industrieweg 83 8731 NO Breda
10011 Bram Visser 9/23/1971 Kerkstraat 76 1599 JK Assen
10012 Luuk Bos 11/1/1984 Beatrixstraat 51 3761 TU Utrecht
10013 Finn de Vries 5/1/1973 Eikenlaan 80 2174 OP Den Haag
10014 Lotte Jansen 9/23/2007 Sportlaan 5 3077 KL Vlissigen
10015 Mees Bos 9/22/1959 Parallelweg 38 9451 WX Groningen
10016 Noah Jansen 1/2/2018 Sportlaan 70 5776 UV Amsterdam
10017 Levi de Vries 1/24/1986 Industrieweg 8 3630 TU Enschede
10018 Julia Vos 4/23/1961 Molenstraat 57 2663 IJ Maastricht
10019 Daan de Boer 5/20/1967 Schoolstraat 99 9569 EF Breda
10020 Sophie de Vries 10/25/1978 Wilhelminastraat 78 4690 TU Amsterdam
10021 Sophie de Vries 2/10/1990 Markt 11 3072 JK Almere
10022 Tess de Vries 1/26/1966 Emmastraat 62 7286 ST Haarlem
10023 Levi Bakker 10/18/1970 Kastanjelaan 6 7437 WX Vlissigen
10024 Yara Bakker 9/17/1987 Rembrandtstraat 89 6735 LM Assen
10025 Levi van Leeuwen 11/24/2019 Sportlaan 80 5481 UV Leeuwarden
10026 Luuk de Jong 9/19/1966 Prins Bernhardstraat 10 2779 IJ Nijmegen
10027 Lucas Meijer 2/25/2009 Julianastraat 78 3620 LM Utrecht
10028 Levi de Vries 2/22/1972 Beatrixstraat 73 4442 HI Apeldoorn
10029 Nora de Vries 3/21/2011 Rembrandtstraat 95 1585 PQ Utrecht
10030 Liam Meijer 2/14/1968 Nieuwstraat 76 4159 CD Den Haag
10031 Yara de Groot 2/18/2013 Kerkstraat 50 5871 YZ Enschede
10032 Yara Bos 4/7/2006 Wilhelminastraat 41 9436 MN Amsterdam
10033 Tess de Boer 1/7/2010 Molenstraat 5 2780 QR Apeldoorn
10034 Tess Jansen 2/18/1981 Sportlaan 68 8481 MN Utrecht
10035 Sem de Groot 6/12/1950 Schoolstraat 80 8365 DE Apeldoorn
10036 Sem de Boer 6/16/2018 Industrieweg 17 5461 NO Utrecht
An error has occurred. This application may no longer respond until reloaded. Reload 🗙