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 Nora Meijer 1/22/2015 Julianastraat 12 4423 AB Maastricht
10002 Levi Hendriks 4/18/1989 Emmastraat 12 3187 NO Maastricht
10003 Zoë Bos 2/27/1989 Grote Markt 57 7180 RS Eindhoven
10004 Nora de Vries 11/11/1988 Kastanjelaan 4 8663 IJ Breda
10005 Mees Peters 4/2/1959 Sportlaan 6 6544 QR Apeldoorn
10006 Julia Vos 11/17/1959 Sportlaan 32 1566 LM Breda
10007 Mees de Boer 2/3/1965 Emmastraat 31 5315 AB Leeuwarden
10008 Liam de Boer 8/11/2002 Molenstraat 30 8008 BC Amsterdam
10009 Sem Peters 6/21/1978 Wilhelminastraat 13 7214 KL Eindhoven
10010 Lotte Bakker 8/15/1951 Kerkstraat 27 7997 YZ Almere
10011 Noah Mulder 6/7/2017 Parallelweg 64 4832 VW Nijmegen
10012 Levi de Groot 7/1/1988 Stationsweg 56 1577 HI Den Bosch
10013 Yara de Vries 10/2/1978 Prins Bernhardstraat 10 1437 CD Apeldoorn
10014 Daan de Jong 5/18/1965 Dorpsstraat 62 6545 TU Zwolle
10015 Liam Bakker 2/12/1984 Schoolstraat 4 1005 GH Den Haag
10016 Bram van Leeuwen 7/13/2019 Beukenlaan 12 9228 OP Almere
10017 Lucas de Jong 3/17/1995 Prins Bernhardstraat 66 4029 PQ Eindhoven
10018 Mees Jansen 11/22/1953 Beatrixstraat 37 4361 FG Amsterdam
10019 Lotte van Leeuwen 6/26/1982 Schoolstraat 53 3327 QR Enschede
10020 Emma Vos 5/1/1952 Markt 54 9203 PQ Den Haag
10021 Lotte van den Berg 11/5/2009 Emmastraat 60 6544 DE Amsterdam
10022 Zoë van den Berg 3/23/1972 Wilhelminastraat 92 9070 AB Groningen
10023 Tess Visser 7/17/1964 Eikenlaan 85 6635 CD Leeuwarden
10024 Sophie de Boer 10/25/1998 Kerkstraat 24 3536 DE Enschede
10025 Emma van Leeuwen 10/5/2019 Dorpsstraat 31 7453 ST Den Haag
10026 Sara Vos 6/9/1989 Markt 13 3336 JK Vlissigen
10027 Luuk Smit 5/23/2012 Dorpsstraat 71 8921 UV Enschede
10028 Finn Smit 6/22/1957 Emmastraat 94 3554 XY Breda
10029 Nora Vos 4/9/1990 Beukenlaan 16 6337 AB Den Bosch
10030 Luuk Bakker 4/18/2008 Molenstraat 49 2434 MN Den Bosch
10031 Julia Vos 9/19/1977 Nieuwstraat 31 8273 PQ Lelystad
10032 Mila Peters 8/23/1983 Kastanjelaan 77 5817 VW Assen
10033 Zoë Bos 4/26/2003 Industrieweg 80 1529 KL Breda
10034 Bram Mulder 6/6/2012 Prins Bernhardstraat 93 3513 XY Den Bosch
10035 Mila Vos 2/5/1999 Rembrandtstraat 74 7874 HI Zwolle
10036 Sara Bos 6/24/1989 Stationsweg 99 9698 FG Assen
An error has occurred. This application may no longer respond until reloaded. Reload 🗙