CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Dynamic Captions for ContextMenu Items

by MicroSolutions » 08 Oct 2018 14:07

Hi,

Is there any way to dynamically change the Captions of the ContextMenu Items, before PopUp?
(use build callback?)


Thanks in advance!
MicroSolutions
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53

by Alexander Bulei » 08 Oct 2018 17:33

Hi MicroSolutions,

Please check the attached demo.

Best Regards.
You do not have the required permissions to view the files attached to this post.
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

by MicroSolutions » 08 Oct 2018 18:55

Thank You!

Would this be also possible on the Server side Ajax script (OnEvent)?

Additionally if I set all items to invisible (Visible:=False) the empty list PopsUp.
Is there any way to prevent it?

Best Regards:
MicroSolutoins
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53

by Alexander Bulei » 09 Oct 2018 09:05

Hi MicroSolutions,

Would this be also possible on the Server side Ajax script (OnEvent)?


What do you mean?

Additionally if I set all items to invisible (Visible:=False) the empty list PopsUp.
Is there any way to prevent it?


Just return false OnShow event:

javascript code
return false;


Best Regards.
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

by MicroSolutions » 09 Oct 2018 13:10

Hi,

I need this logic on the Delphi (JQContextMenuOptions.Events.Show.OnEvent ) part if possible:
Change contextmenu item caption, and show/hide items.

Best Regards:
MicroSolutions
MicroSolutions
 
Posts: 49
Joined: 22 Feb 2016 11:53

by Alexander Bulei » 09 Oct 2018 14:16

Hi MicroSolutions,
There is no way to do that on server side.

Best Regards.
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 JQContextMenu

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.