CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Item tap/vclick

by cyracks » 26 Aug 2016 00:27

Hi,

could somebody please take a look at example attached and tell me why procedure responsible for item click is not executed.
I tried the following events and none of them worked:
Code: Select all
    ListItem.Events.OnTap.OnEvent := ListViewEventsTap;
    ListItem.Events.OnTap.OnSimpleEvent  := ListViewEventsTapSimple;
    ListItem.Events.OnVClick.OnEvent := ListViewEventsVClick;
    ListItem.Events.OnVClick.OnSimpleEvent := ListViewEventsVClickSimple;

Example of first procedure.
Code: Select all
procedure TIWFormMainMobile.ListViewEventsTap(Sender: TObject; AParams: TStringList);
begin
    WebApplication.ShowMessage('On tap');
end;


I tried switching ajax to True/False, but it doesn't work... Is it a bug or am I missing something ?

CGDev: 2.9.0.284
Intraweb: 14.0.43
Delphi xe7
You do not have the required permissions to view the files attached to this post.
cyracks
 
Posts: 92
Joined: 09 Feb 2016 12:47

by Alexander Bulei » 26 Aug 2016 16:16

Hi,

Use only one correct method:

ListItem.Events.OnVClick.OnEvent := ListViewEventsVClick;


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

by cyracks » 26 Aug 2016 22:53

Hi Alexander,

even if I set only one event it does not work.

Best Regards
cyracks
 
Posts: 92
Joined: 09 Feb 2016 12:47

by Alexander Bulei » 29 Aug 2016 09:38

Hi,

It doesn't work because you have invalid structure of page.

Please check: viewtopic.php?f=6&t=404

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

by cyracks » 29 Aug 2016 11:04

Hi Alexander,

thanks for the tip it solved the problem I overlooked the tutorial (video also helped).

Best Regards
Tomaž
cyracks
 
Posts: 92
Joined: 09 Feb 2016 12:47

by Alexander Bulei » 29 Aug 2016 11:35

Hi cyracks,

Great, I'm glad that you solved your problem ;)

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 JQMListView

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.