Skip to content

Disable DropdownList #2387

Answered by stsrki
marcofo23 asked this question in Q&A
May 20, 2021 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Don't worry we will not judge. If you don't ask how else you will learn :)


I checked and It seems I forgot to include the Disabled parameter on a DropdownList. Unfortunately, until I fix it your only option is to build a dropdown menu from scratch using the Dropdown component(s).

DropodownList is internally very simple, you should be able to make it without any problems:

<Dropdown @ref="@dropdownRef" ElementId="@ElementId" Class="@Class" Style="@Style" Attributes="@Attributes">
    <DropdownToggle @ref="@dropdownToggleRef" Color="@Color" TabIndex="@TabIndex">@ChildContent</DropdownToggle>
    <DropdownMenu>
        @if ( Data != null )
        {
            foreach ( var item in Data )
 …

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@marcofo23
Comment options

@stsrki
Comment options

@marcofo23
Comment options

@stsrki
Comment options

@marcofo23
Comment options

Answer selected by marcofo23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants