Page 1 of 1

Item tap/vclick

PostPosted: 26 Aug 2016 00:27
by cyracks
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

Re: Item tap/vclick

PostPosted: 26 Aug 2016 16:16
by Alexander Bulei
Hi,

Use only one correct method:

ListItem.Events.OnVClick.OnEvent := ListViewEventsVClick;


Best Regards.

Re: Item tap/vclick

PostPosted: 26 Aug 2016 22:53
by cyracks
Hi Alexander,

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

Best Regards

Re: Item tap/vclick

PostPosted: 29 Aug 2016 09:38
by Alexander Bulei
Hi,

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

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

Best Regards.

Re: Item tap/vclick

PostPosted: 29 Aug 2016 11:04
by cyracks
Hi Alexander,

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

Best Regards
Tomaž

Re: Item tap/vclick

PostPosted: 29 Aug 2016 11:35
by Alexander Bulei
Hi cyracks,

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

Best Regards.