mterceno Posted April 11, 2017 Posted April 11, 2017 Hi all, I try to open the PopupMenu from "client side" event but the Object TUniPopupMenu doesn't contains the property JSName. So without the client name, it impossible to implement this functionality. Do you have any idea to open the menu in JS code ? Best regards, Quote
Sherzod Posted April 11, 2017 Posted April 11, 2017 Hi, You can search on the forum. For example, you can use this approach: http://forums.unigui.com/index.php?/topic/5552-tunipopupmenu%E7%9A%84closemenu%E6%96%B9%E6%B3%95%E6%97%A0%E6%95%88/&do=findComment&comment=28439 Best regards. Quote
mterceno Posted April 12, 2017 Author Posted April 12, 2017 Hi, I can now get the JSName of the PopupMenu but I must call before "UniSession.Synchronize();" after that, I create the JS event Click : UniSession.Synchronize(); UniMenuButton.ClientEvents.ExtEvents.Add( 'click=function click(sender, eOpts){debugger;'+ 'alert("test");' + TXPopupMenu(UniMenu).GetMenuControl.JSName+'el.show();'+ '}'); With the Synchronize call, the Click event is never fired ! Without Synchronize, the alert("test") is fired well. Very strange.... Do you have any advices to avoid a call to UniSession.Synchronize(); Thank you for your help, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.