CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Dialog Close not called

by etwoss » 13 Dec 2014 12:51

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 15 Dec 2014 11:41

Hi etwoss,

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

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: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 15 Dec 2014 14:01

Hi

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

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Jorge Sousa » 15 Dec 2014 15:31

Hi

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

http://www.cgdevtools.com/buy-premium-support/
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by etwoss » 17 Dec 2014 09:10

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQDialog

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.