Would anyone here happen to know how to remove the Action/Object menu from a UniGrid when implementing the Object Listing UI template for a custom module?
Object Listing
I've tried setting Control.ShowObjectMenu = false from the OnInit method of my ControlExtender class as illustrated in the "creating extenders for module interfaces pages" documentation.
Control.ShowObjectMenu = false
OnInit
ControlExtender
I've also tried adding <key name="ShowObjectMenu" value="false" /> to the <options> section of the UniGrid definition XML as the documentation suggests might be possible in the UniGrid definition reference.
<key name="ShowObjectMenu" value="false" />
<options>
Because I'm utilizing an Object Listing template, I don't have an ASCX layout to set the ShowObjectMenu property from, so I think it has to be from the Control Extender class. Perhaps I need to do this from one of the Control events other than OnInit()?
ShowObjectMenu
OnInit()
Sébastien Gumy answered this question for me in the Kentico-Community Slack channel. The solution is to add <action name="empty" contextmenu="~" /> in the <actions> section of the UniGrid Definition XML.
<action name="empty" contextmenu="~" />
<actions>
Sébastien Gumy's response in Slack
Please, sign in to be able to submit a new answer.