Search results

Disable a DropDownButton

03 Mar 2021 / 1 minute to read

DropdownButton component can be enabled/disabled by giving disabled property. To disable DropdownButton component, the disabled property can be set as true.

Index.razor

Copied to clipboard
<EjsDropDownButton ID="disabled" Items="@items" Content="Message" IconCss="e-icons e-search" Disabled="true"></EjsDropDownButton>

@functions {

    List<object> items = new List<object>
     {
            new { text = "Edit" },
            new { text = "Delete" },
            new { text = "Mark as Read" },
            new { text = "Like Message" }

        };
}