CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Create On Click Event For Sub Items is Vert Menu

by amirrezaasadpour » 28 Nov 2016 17:42

hi , I read the last post , but i cant understand any things
can you guide me completely , How to Create an Event for the sub items in vert menu , i really need it , please help me
i don't know how to create event in Intraweb also , thanks a lot.
amirrezaasadpour
 
Posts: 8
Joined: 13 Jul 2015 20:39

by Alexander Bulei » 29 Nov 2016 11:08

Hi amirrezaasadpour,

Code: Select all
How to Create an Event for the sub items in vert menu , i really need it


This component have general JQVertMenuOptions.OnClick event...
Implement that event, debug and check AParams...You will find "itemId"

i don't know how to create event in Intraweb also , thanks a lot.


Sorry, but we can't teach you...

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 fateh78 » 31 May 2017 13:45

JQVertMenu should have separate OnClick event for each menuitem like JQMenu
if you used the general OnClick with "Ajax = False" ==> then the page will make full submit ==> VertMenu will return to its prior status ==> you can not reach the submenu items
Also this full page submit not needed when nothing to do (when you click main menu item)
..... tooo many problems i faced with vertmenu because of this

finally i make a workaround by putting this condition in the OnClick event :
JQVertMenu.JQVertMenuOptions.OnClick.Condition := 'submenu ==false';

please hear from dummies like us
Sousaaaaaaa :evil:

best regards
fateh78
 
Posts: 85
Joined: 16 Mar 2017 21:45

by Jorge Sousa » 31 May 2017 16:07

hi

Maybe it should support, but the jquery plugin doesn't and we cant do nothing about that.

its a nice trick the submenu==false

also you can use Argument itemid, to check what item was clicked, as you probably did.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by fateh78 » 31 May 2017 21:45

i do not know about jacascript plugins
but i can understand that you only can encapsulate the javascript plugin properties and we can not add new props for the component

it will be a nice idea if you make a video to explain how cgdevtools comps work and teach us how to encapsulate other plugins
it will be a great video if you did :idea: :idea:

best wishes Sousa
fateh78
 
Posts: 85
Joined: 16 Mar 2017 21:45


Return to JQVertMenu

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.