Hello Mark,
I assume that you have set up a toolbar using the ToolbarHelper to add save and cancel functions - they should both return to the list of items, which should include the menu.
If you are not returning to the list of items then you can put a cancel function in your item controller.
public function cancel($key = null)
{
$this->checkToken();
// Redirect to the list screen.
$this->setRedirect(Route::_('index.php?option=com_MyComponent&view=items', false));
return true;
}
I assume you do have an item controller, which extends FormController. This doesn't need to contain any functions unless modifying them.
Then, for example, your cancel toolbar function will be defined with:
ToolbarHelper::cancel('item.cancel', 'JTOOLBAR_CLOSE');
I hope that helps.
Regards,
Peter