Page 1 of 1

Dialog Close not called

PostPosted: 13 Dec 2014 12:51
by etwoss
Hi

I use a lot of Frames containing a dialog:

Code: Select all
 TFrmTaakDetails2 = class(TIWCGJQFrame)
    IWFrameRegion: TIWCGJQDialog;


The IWFrameRegion has a OnCloseDialog event:

Code: Select all

procedure TFrmTaakDetails2.IWFrameRegionJQDialogOptionsClose(Sender: TObject;
  AParams: TStringList);
begin
    WebApplication.ReleaseForm(Self);
end;


All Dialog Buttons have a

Code: Select all
     IWFrameRegion.Visible:= False;


In its OnCLick event

Strange behaviour i have is that on Some IWFrameRegion.Visible:= False; the CLoseDialog event is not called!

This means that if i call the dialog again i get the error the dialog is already there

<<<<<New>>>> Half day later :-)
On the second button i have no code at all, only an empty Eventhandler
What do i see? The page is refreshed!!! I mean the page that initialised the Dialog is beeing refreshed!
| really do not see how this is coming!
This could also be the reason the Close eventhandler is not called when i put the IWFrameRegion.Visible:= False; back into the OnCLick eventhandler of this button


Eric

Re: Dialog Close not called

PostPosted: 15 Dec 2014 11:41
by Alexander Bulei
Hi etwoss,

Can you provide us the simple testcase?
t.i.a

Best Regards.

Re: Dialog Close not called

PostPosted: 15 Dec 2014 14:01
by etwoss
Hi

We would like to buy premium support (we send an email) so you can take a look with me.

Eric

Re: Dialog Close not called

PostPosted: 15 Dec 2014 15:31
by Jorge Sousa
Hi

Sure, the easiest way is on cgdevtools main page + Support + Buy Premium Support

http://www.cgdevtools.com/buy-premium-support/

Re: Dialog Close not called

PostPosted: 17 Dec 2014 09:10
by etwoss
Hi

Thanks to Alexander we found the problem, the specific Button of the dialog has its Ajax property of the OnClick set to False

Eric