CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How can I get the ExtraTagParams value of the selected item?

by jorgo » 10 May 2017 08:54

Hallo,
I have CGDevTools 2.9.0.284 and IW 14.0.63.

1.) Fill DropDown component:

Code: Select all
  var
    DropDown1 : TIWCGJQDropDown;
    tmpItem : TIWCGJQDropDownItem;

  DropDown1.Items.Clear;
  for i := 0 to 10 do
  begin
    tmpItem := DropDown1.Items.Add;
    tmpItem.Caption := 'hugo' + IntToStr(i);

    DropDown1.ExtraTagParams.Add( 'berta' + IntToStr(i) );
  end;

2.) Searching for "7" and click on "hugo7"

3.) Now I want to get the value of the selected "DropDown1.ExtraTagParams".
How can I get the selected item?
I miss "DropDown1.ItemIndex".


Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 10 May 2017 11:27

Hi jorgo,

DropDown1.ExtraTagParams


ExtraTagParams is IW property and NOT for this purpose...

How can I get the selected item?


Use the IWCGJQDropDown1.SelectedIndex

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 JQDropDown

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.