Page 1 of 1

changing Actions visibility does not change menu item

PostPosted: 14 Mar 2018 07:52
by davenovo
Hello,

I have an TIWCGJQMenuItem on a form that is linked to an action on a datamodule.
I have changed the action's visible property, but the menu item is still visible.

I thought it was an asyncRender thing, but calling mnuRight.AjaxReRender(True,False) did not help.
I then get the menu item using FindByMenuItemName and checked the visibility of the item. It was true, even though the visibility of the associated action was false.

I hope I am doing something wrong, and that you do support the standard behavior of using an action to change the visibility, enabled, etc of linked controls. I know that setting caption via the action seems to work.

Re: changing Actions visibility does not change menu item

PostPosted: 14 Mar 2018 17:06
by davenovo
It does seem like a bug in actions linked to menu items. If I link an action to a button, and change the action's visibility, the button changes visibility accordingly. But if I do the same with a menuItem, the visibility does not change.

Re: changing Actions visibility does not change menu item

PostPosted: 14 Mar 2018 17:47
by Alexander Bulei
Hi davenovo,

The issue is fixed on next beta release.
Thank you.