Page 1 of 1

How to trap the search event

PostPosted: 20 Jul 2014 04:15
by JohnFSklavounos
Hello All,

This is likely a dumb question :oops: but for the life of me I can't figure it out.

I'm using a TIWCGJQMEdit with JQMEditOptions.EditType := jqmetSearch.

On Android & iPhone the keyboard displays a "Go" button when the field has data in it, the question is - where do I trap the search event ("Go" button key click)?

Thanks for pointing me in the right direction...

Best regards,
John

Re: How to trap the search event

PostPosted: 21 Jul 2014 10:50
by Alexander Bulei
Hi JohnFSklavounos,

You need trigger the change event:

delphi code
CGAddJavaScriptToAjaxResponse(Format('%s.trigger("change");',[IWCGJQMEdit1.GetIDJQuery]));


Also, your search code should be in OnChange event.

Best Regards.