Hello!
Can you help me to add my custom actions to the detail? I'd like to add them to the existing ones that are available if you click on the three dots.
Thank you in advance,
Chris
File attachments
Like
1 comments
06:43 Feb 16, 2017
Hello Chris,
You may check the following methods in BaseGridDetail2:
-initToolsButtonMenu
-addToolsButtonMenuItems
The methods below would be quite enough to achieve yoiur aim:
addToolsButtonMenuItems: function(toolsButtonMenu) { this.callParent(arguments); var button = this.getMyBtn(toolsButtonMenu); toolsButtonMenu.addItem(button); } getMyBtn: function(toolsButtonMenu) { toolsButtonMenu.addItem(this.getButtonMenuSeparator()); ///adds the separator between the buttons toolsButtonMenu.addItem(this.getButtonMenuItem({ Caption: "My button", Click: {"bindTo": "/*...*/"}, Visible: {"bindTo": "/*...*/"} })); }
Best regards,
Lisa
Show all comments