Page 1 of 1

Determining the item that was checked

PostPosted: 14 Feb 2015 06:35
by JohnFSklavounos
Hi Guys,

My brain is a little mushy... How can I tell which specific TIWCGJQMCheckButton within the list was just checked? I am trapping the OnChange event in the JQMCheckButtonOptions but the params have a complete list of all the checked items. I also can't drive backwards from the Sender because it's the TIWCGJQMCheckButtonsEvents which brings me one level higher than the button list.

In the end, I just want to know the specific one that caused the event to occur. Any ideas?

Thanks!
John

Re: Determining the item that was checked

PostPosted: 16 Feb 2015 13:18
by Alexander Bulei
Hi John,

Please check this code :

delphi code
procedure TIWAppForm6.IWAppFormCreate(Sender: TObject);
begin
with IWCGJQMCheckButtons1.JQMCheckButtonsOptions.Events.OnChange.BrowserParams.Add do
begin
ServerName:= 'clickedBtnIndex';
BrowserScript:= '$(this).attr("Index")';
end;
end;

procedure TIWAppForm6.IWCGJQMCheckButtons1JQMCheckButtonsOptionsEventsChange(Sender: TObject; AParams: TStringList);
begin
WebApplication.ShowMessage(AParams.Values['clickedBtnIndex']);
end;


Best Regards.

Re: Determining the item that was checked

PostPosted: 16 Feb 2015 14:15
by JohnFSklavounos
Hi Guys,

Thanks so much! :D

All my best,
John