CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How to trap the search event

by JohnFSklavounos » 20 Jul 2014 04:15

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
John F. Sklavounos
Software Developer
Always learning

XE7: Update 1
FireDAC: 20.0.16277 (Build 1276)
IW: 14.0.41
CG : 2.6.0.100
JohnFSklavounos
 
Posts: 109
Joined: 14 Aug 2013 00:35
Location: Miami, FL

by Alexander Bulei » 21 Jul 2014 10:50

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.
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 JQMEdit

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.