Page 1 of 1

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

PostPosted: 10 May 2017 08:54
by jorgo
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

Re: How can I get the ExtraTagParams value of the selected i

PostPosted: 10 May 2017 11:27
by Alexander Bulei
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.