CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

changing Actions visibility does not change menu item

by davenovo » 14 Mar 2018 07:52

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.
davenovo
 
Posts: 98
Joined: 03 Mar 2018 19:11

by davenovo » 14 Mar 2018 17:06

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.
davenovo
 
Posts: 98
Joined: 03 Mar 2018 19:11

by Alexander Bulei » 14 Mar 2018 17:47

Hi davenovo,

The issue is fixed on next beta release.
Thank you.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQMenu

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.