Hi All,
Today I want to share with you one cool way to organize your actions.
Actually this is quite simple, you just need to add sub-actions as a menus text to the main action.
MainAction.MenuAutoOpen = true; MainAction.AddMenuAction(SubAction);
Code Snippet:
If you want to have an action with sub-items on grid (like in my example) do not forget to hide actions on data source:
<CallbackCommands> <px:PXDSCallbackCommand Name="MainAction" DependOnGrid="grid" Visible="False" /> </CallbackCommands>
Have a nice development!
1 Reply to “Sub-Menus for Action”