Search results

Disable a DropDownButton

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

@using Syncfusion.EJ2.Blazor.SplitButtons

<EjsDropDownButton Items="@Items" Disabled="true">Message</EjsDropDownButton>

@code {

public List<ItemModel> Items = new List<ItemModel>
{
    new ItemModel{ Text = "Edit" },
    new ItemModel{ Text = "Delete" },
    new ItemModel{ Text = "Mark as Read" },
    new ItemModel{ Text = "Like Message" }
};
}

Output be like

Button Sample