CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQVertMenu, selected index

General discussion

by etwoss » 16 Apr 2014 08:10

Hi

Whats the best way to retrieve the selected index of the menu?

i now get the value from the itemId in the params

Same question for TIWCGJQDropDown, if i have selected a value how to get the string value of it?

Tried typecasting Sender as the class, but can not find correct property.
Or always use the AParams?

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 16 Apr 2014 14:27

Hi,

Whats the best way to retrieve the selected index of the menu?

i now get the value from the itemId in the params


right way...


Same question for TIWCGJQDropDown, if i have selected a value how to get the string value of it?

Tried typecasting Sender as the class, but can not find correct property.
Or always use the AParams?


Check properties in documentation :

http://www.cgdevtools.com/docs/_html/IWCGJQDropDown.TIWCGJQCustomDropDown.htm

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 etwoss » 17 Apr 2014 11:49

Hi

Ofcourse i looked in the documentation.

However Sender in the JQDropDownOptionsChange event is of class 'TIWCGJQDropDownOptions' which not hold properties like val, selected etc..

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 17 Apr 2014 11:54

TIWCGJQDropDownOptions has property DropDown
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 17 Apr 2014 11:58

Hi

The documentation says:

TIWCGJQDropDownOptions.DropDown Property

Represents property DropDown.


Not very clear that this is the TIWCGJQDropDown class belonging to the TIWCGJQDropDownOptions

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 17 Apr 2014 12:01

we will draw a picture next time :)
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 18 Apr 2014 11:18

A Picture says more than a thousand words :-)
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by etwoss » 22 Apr 2014 11:21

Hi

Is it possible to have the Tag Value of the MenuItem clicked in the AParams property?
Would be nice to have a case statement based on the tag to handle the clickevent

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 22 Apr 2014 23:38

It's not possible
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General - Archive

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.