roman.attila Posted January 30, 2014 Share Posted January 30, 2014 Hi all, I would like to implement a popupmenu in dbgrid. I'm using containercontextmenu event of grid for popup and I need the JSName's value of popupmenu. In runtime in Form.Loaded method the JSName of TUniPopupMenu is empty. How can I get a real name of popupmenu in javascript? Example: function containercontextmenu(sender, e, eOpts){ var position = e.getXY(); e.stopEvent(); O3B.showAt(position);} O3B is name of popupmenu UniGUI version: 0.94 build 1024 Delphi 2010 Thanks, Attila Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 31, 2014 Share Posted January 31, 2014 How can I get a real name of popupmenu in javascript? Hi Román Attila. I think maybe it's not the best solution, but, gives the result ... In javascript: MainForm.CreateButton1.parentMenu.id; CreateButton1 - one of your UniMenuItem UniPopupMenu. For example: MainForm.CreateButton1.parentMenu.showAt(10, 10); Best regards Quote Link to comment Share on other sites More sharing options...
rullomare Posted February 1, 2014 Share Posted February 1, 2014 Hi, maybe you can help. see : http://forums.unigui.com/index.php?/topic/2652-extra-unigui-components/?p=18280 Best regards Quote Link to comment Share on other sites More sharing options...
roman.attila Posted February 2, 2014 Author Share Posted February 2, 2014 Thank you guys! Meantime I'm using TUniMenuButton's menu property in javasacript and my popupmenu working properly in datagrid. Quote Link to comment Share on other sites More sharing options...
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.