How can I change a Dropdown button's Items with code?


Yang Ghua

I want to change the Dropdown button's Items in coding
or
disabled some items ,enable some items......


Yang Ghua

I figure out one way

still do not know how to disable menuitem


DecSoft

Hello Joshua,

The Dropdown menu's items are feeded by an Array variable, so we can play with that Array variable in the same way than others. Unfortunatelly, due to how the dropdown is draw, we can't disabled menu's items, but we can place items than appear like disabled one with a little of CSS. Is our duty to get ready for these possible "disabled" items' clicks. Look at this sample: MyApp.zip



Yang Ghua

OK,That will work
:lol:

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.