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 Yara de Boer 8/22/1975 Industrieweg 54 4945 IJ Den Haag
10002 Mila van den Berg 10/6/1998 Parallelweg 94 6839 FG Nijmegen
10003 Sem Peters 5/9/1965 Beukenlaan 51 5531 RS Apeldoorn
10004 Sem Jansen 5/1/1970 Grote Markt 50 7041 MN Nijmegen
10005 Sara Jansen 4/17/2008 Schoolstraat 47 4951 FG Maastricht
10006 Mees Peters 8/10/1952 Rembrandtstraat 73 7690 HI Groningen
10007 Yara de Boer 2/11/1971 Kastanjelaan 8 7055 CD Apeldoorn
10008 Finn van Leeuwen 10/11/1997 Kerkstraat 56 2551 BC Lelystad
10009 Liam de Groot 10/20/1999 Industrieweg 97 8650 UV Almere
10010 Liam Peters 10/12/1981 Markt 18 5554 BC Lelystad
10011 Luuk de Vries 11/5/2016 Industrieweg 29 9980 TU Groningen
10012 Sara Meijer 2/18/2015 Beukenlaan 62 3518 NO Den Bosch
10013 Sem Bos 9/17/1972 Industrieweg 62 9862 LM Eindhoven
10014 Noah de Groot 6/17/2011 Emmastraat 4 3304 NO Breda
10015 Finn de Jong 6/17/1983 Parallelweg 77 2044 LM Eindhoven
10016 Zoë de Jong 5/6/1956 Dorpsstraat 85 6783 KL Enschede
10017 Noah Bakker 6/23/2007 Nieuwstraat 53 1953 NO Arnhem
10018 Lucas Smit 7/13/1967 Markt 20 6125 VW Breda
10019 Lotte Peters 4/16/1957 Stationsweg 38 6946 CD Enschede
10020 Lucas Bakker 3/8/1961 Eikenlaan 4 2573 RS Arnhem
10021 Yara Hendriks 8/14/1955 Prins Bernhardstraat 9 5122 JK Arnhem
10022 Mees Visser 1/27/1956 Rembrandtstraat 36 5154 HI Assen
10023 Noah Peters 10/27/2019 Beukenlaan 85 1434 ST Almere
10024 Mees van Leeuwen 2/23/1988 Stationsweg 94 3885 JK Amsterdam
10025 Levi Peters 4/3/1973 Julianastraat 93 9274 LM Den Bosch
10026 Bram van Leeuwen 5/4/2002 Grote Markt 98 9574 FG Lelystad
10027 Zoë Bos 3/15/2017 Rembrandtstraat 84 7248 UV Enschede
10028 Luuk Visser 2/18/1997 Nieuwstraat 70 7263 GH Nijmegen
10029 Tess Jansen 1/22/2014 Wilhelminastraat 43 2293 CD Lelystad
10030 Zoë de Vries 3/17/1957 Markt 27 8354 HI Den Haag
10031 Lucas Bakker 7/1/2015 Stationsweg 97 4944 XY Zwolle
10032 Daan Hendriks 4/24/2001 Markt 84 7021 XY Haarlem
10033 Sara van Leeuwen 7/1/1994 Beatrixstraat 74 8561 NO Almere
10034 Noah Peters 1/1/1981 Dorpsstraat 51 8736 HI Apeldoorn
10035 Levi Smit 10/27/2015 Nieuwstraat 27 3415 PQ Utrecht
10036 Luuk Hendriks 1/6/1964 Sportlaan 16 3478 VW Vlissigen
An error has occurred. This application may no longer respond until reloaded. Reload 🗙