[SOLVED] Dynamic dropdown menu
Can we create a dynamic dropdown menu in Zimbra? I have created a menu using DwtButton and DwtMenu. It is being populated from server data during initialization i.e. only once when this menu is instantiated however my requirement is to populate it dynamically, say populate it everytime user clicks on it.
Can somebody help me on this?
Solved: Dynamic dropdown menu
I found an easy resolution - created a listener and registered it for dropdown button's selection listener and dropdown menu listener. This listener whenever invoked makes a synchronus server call for data and then calls button.popup().