@page "/dropdown-custom-objects"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    DropDown data binding to custom objects
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Bind DropDown to complex objects and enums with custom display and value properties.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo the dropdown binds to a <code>MyObject</code> class with custom <code>Equals</code>, <code>ToString</code>, and <code>GetHashCode</code> methods, showing 100 items with filtering enabled and value pre-selected to "Name5".
</RadzenText>

<RadzenExample ComponentName="DropDown" Example="DropDownCustomObjects">
    <DropDownCustomObjects />
</RadzenExample>

<RadzenText Anchor="dropdown-custom-objects#data-binding-to-enum" TextStyle="TextStyle.H5" TagName="TagName.H2" class="rz-pt-8">
    DropDown data binding to enum
</RadzenText>
<RadzenText TextStyle="TextStyle.Body1" class="rz-mb-8">
    Bind a DropDown directly to an enum type for easy selection of enumeration values.
</RadzenText>
<RadzenExample ComponentName="DropDown" Example="DropDownEnums">
    <DropDownEnums />
</RadzenExample>