Page 1 of 1

DBNavigato events blocks DB components

PostPosted: 22 Aug 2014 10:12
by sgaravatti
Hello, i'm quite new to cgdevtools, i'm using IW 14.0.32 + cg 2.2.1.26

This is my question: until I don't specify any event handlers for my dbNavigator, my form behaves as expected, but when I add some event hanler for any button (eg Next, Prior),
the IW Data Aware objects of my forms stucks, in my browser consolle i see less data moving compared to a navigator without events.
Is it an exepected behaviour? I wish this control behaves like the VCL one, since i'm converting a VCL project to IW.

thanks,
Niccolò

Re: DBNavigato events blocks DB components

PostPosted: 22 Aug 2014 11:20
by Alexander Bulei
Hi sgaravatti,

If you assigned the button's OnClick event, you should call the operation by yourself.
Example for "Next" button :

delphi code
WebApplication.ShowMessage('Next button event!');
if Assigned(IWCGJQNavigator1.DataLink.DataSet) then
IWCGJQNavigator1.DataLink.DataSet.Next;


We will check/improve it asap.

Best Regards.

Re: DBNavigato events blocks DB components

PostPosted: 22 Aug 2014 14:16
by sgaravatti
I'll manage like that, thank you for the tip.
Niccolò