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:

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.