CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

how can I enable/disable context items at runtime?

by Luckman » 12 Sep 2014 20:27

I tried using the show event but it seems like a catchall and doesn't pass each option in - is this the place to enable items?
Luckman
 
Posts: 80
Joined: 03 Aug 2014 19:59

by Jorge Sousa » 12 Sep 2014 21:10

Hi

It's Items[i].Disabled. you can change dynamically in both full submit or ajax (async) events.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by sesam » 18 Feb 2015 12:29

Hi,
I also can't disable the menu items at runtime...
Attached is a test case.

Thanks,
Andreas
You do not have the required permissions to view the files attached to this post.
sesam
 
Posts: 153
Joined: 09 Apr 2013 16:19

by Alexander Bulei » 19 Feb 2015 12:10

Hi Andreas,

You need call AjaxReRender to rebuild the items.
Call the method at end :

delphi code
IWCGJQContextMenu1.AjaxReRender;


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

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.