You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to disable specific items in dropdownlist? For example: I created a dropdownlist which has 3 options. If i click on one of the item some action will take place via my api and then that option should be disabled in the dropdownlist until i do some other action to enable it. Basically i want to communicate to user that you had already pressed this button and its action is done so you cannot repeat the action you just did by clicking on the same list item.
I checked documentation but didn't find anything so asking it here.
Also is there another way or a better way to achieve the same behavior i am looking for?
Unfortunately the DropdownList does not support disabling specific items at this time.
However the underlying Dropdown components do.
So my recommendation for now is to create the Dropdown list manually by using the DropdownDropdownToggleDropdownMenu And DropdownItem to create your dropdown list manually, and then control the disabled state in each of the DropdownItem.
We'll be considering this as a feature for the next release as it's relatively simple to implement.
We'll be implementing a new Parameter similar to the ListViewDisabledItem Func:
Is there a way to disable specific items in dropdownlist? For example: I created a dropdownlist which has 3 options. If i click on one of the item some action will take place via my api and then that option should be disabled in the dropdownlist until i do some other action to enable it. Basically i want to communicate to user that you had already pressed this button and its action is done so you cannot repeat the action you just did by clicking on the same list item.
I checked documentation but didn't find anything so asking it here.
Also is there another way or a better way to achieve the same behavior i am looking for?
This is the code I am working with:
The text was updated successfully, but these errors were encountered: