New to Telerik UI for ASP.NET Core? Download free 30-day trial

Appearance

In this article, you will find information about the rendering and styling options of the Telerik UI for ASP.NET Core DropDownButton.

For general information regarding the rendering, visit the Components Rendering article.

For a complete example, refer to the Appearance Demo of the DropDownButton.

Options

The DropDownButton provides the following methods for styling:

  • Size()—configures the overall size of the component.
  • ThemeColor()—configures what color will be applied to the component.
  • FillMode()—defines how the color is applied to the component.
  • Rounded()—determines the border radius of the component.

Size

To control the size of the DropDownButton, configure the Size() method with any of the following values:

  • Small
  • Medium
  • Large
  • None

The default Size value is Medium.

    @(Html.Kendo().DropDownButton()
        .Name("DropDownButton")
        .Icon("paste")
        .Size(ComponentSize.Medium)
        .Items(items =>
        {
            items.Add().Id("keep-text").Text("Keep Text Only").Icon("paste-plain-text");
            items.Add().Id("paste-html").Text("Paste as HTML").Icon("paste-as-html");
            items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("paste-markdown");
        }
    )
    <kendo-dropdownbutton name="DropDownButton" text="Paste" icon="paste" size="ComponentSize.Medium">
        <dropdownbutton-items>
            <item id="keep-text" text="Keep Text Only" icon="paste-plain-text"></item>
            <item id="paste-html" text="Paste as HTML" icon="paste-as-html"></item>
            <item id="paste-markdown" text="Paste Markdown" icon="paste-markdown"></item>
        </dropdownbutton-items>
    </kendo-dropdownbutton>

FillMode

To manipulate the fill mode of the DropDownButton, configure the FillMode() method with any of the following values:

  • Solid
  • Outline
  • Flat
  • None

The default FillMode value is Solid.

    @(Html.Kendo().DropDownButton()
        .Name("DropDownButton")
        .Icon("paste")
        .FillMode(FillMode.Solid)
        .Items(items =>
        {
            items.Add().Id("keep-text").Text("Keep Text Only").Icon("paste-plain-text");
            items.Add().Id("paste-html").Text("Paste as HTML").Icon("paste-as-html");
            items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("paste-markdown");
        }
    )
    <kendo-dropdownbutton name="DropDownButton" text="Paste" icon="paste" fill-mode="FillMode.Solid">
        <dropdownbutton-items>
            <item id="keep-text" text="Keep Text Only" icon="paste-plain-text"></item>
            <item id="paste-html" text="Paste as HTML" icon="paste-as-html"></item>
            <item id="paste-markdown" text="Paste Markdown" icon="paste-markdown"></item>
        </dropdownbutton-items>
    </kendo-dropdownbutton>

ThemeColor

To specify the theme color of the DropDownButton, configure the ThemeColor() method with any of the following values:

  • Base
  • Primary
  • Secondary
  • Tertiary
  • Info
  • Success
  • Warning
  • Error
  • Dark
  • Light
  • Inverse

The default ThemeColor value is Base.

    @(Html.Kendo().DropDownButton()
        .Name("DropDownButton")
        .Icon("paste")
        .ThemeColor(ThemeColor.Base)
        .Items(items =>
        {
            items.Add().Id("keep-text").Text("Keep Text Only").Icon("paste-plain-text");
            items.Add().Id("paste-html").Text("Paste as HTML").Icon("paste-as-html");
            items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("paste-markdown");
        }
    )
    <kendo-dropdownbutton name="DropDownButton" text="Paste" icon="paste" theme-color="ThemeColor.Base">
        <dropdownbutton-items>
            <item id="keep-text" text="Keep Text Only" icon="paste-plain-text"></item>
            <item id="paste-html" text="Paste as HTML" icon="paste-as-html"></item>
            <item id="paste-markdown" text="Paste Markdown" icon="paste-markdown"></item>
        </dropdownbutton-items>
    </kendo-dropdownbutton>

Rounded

To set the border radius of the DropDownButton, configure the Rounded() method with any of the following values:

  • Small
  • Medium
  • Large
  • Full
  • None

The default Rounded value is Medium.

    @(Html.Kendo().DropDownButton()
        .Name("DropDownButton")
        .Icon("paste")
        .Rounded(Rounded.Medium)
        .Items(items =>
        {
            items.Add().Id("keep-text").Text("Keep Text Only").Icon("paste-plain-text");
            items.Add().Id("paste-html").Text("Paste as HTML").Icon("paste-as-html");
            items.Add().Id("paste-markdown").Text("Paste Markdown").Icon("paste-markdown");
        }
    )
    <kendo-dropdownbutton name="DropDownButton" text="Paste" icon="paste" rounded="Rounded.Medium">
        <dropdownbutton-items>
            <item id="keep-text" text="Keep Text Only" icon="paste-plain-text"></item>
            <item id="paste-html" text="Paste as HTML" icon="paste-as-html"></item>
            <item id="paste-markdown" text="Paste Markdown" icon="paste-markdown"></item>
        </dropdownbutton-items>
    </kendo-dropdownbutton>

See Also

In this article