CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Show and Hide IWCGJQDialog runtime

by MarcoRu » 27 Apr 2015 13:58

Hi all, I'm going crazy with a Dialog on my frame.
My dialog is on a region, where RenderInvisibleContent is set to true. The dialog has visible property set to false.
On the same region I have a button to show the dialog, where the code on click event is:
Code: Select all
dialog.Visible := true

this work, because there are few lines of code.
On the dialog I have another button, where in the first line of code i have:
Code: Select all
dialog.Visible := false

After this I have many other lines of code, that require a bit of time to be completed. The problem is that the dialog disappear (hide) only when the code is finished. In this way the dialog remains visible until the conclusion of my code. I need to close dialog immediately, without wait the end of my instruction, and eventually reshow the dialog when I want.
There is a way to do this? To hide/show dialog immediately without wait the end of my code?

Im using 2.3.0.69 version on I.W. 14.0.34
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Jorge Sousa » 27 Apr 2015 14:46

Hi

There is a way to do this? To hide/show dialog immediately without wait the end of my code?


You've to realize that this is a client server technology.

Your event is a request made from browser to the server, and when it returns to browser, it will execute all the operations you executed in the same event, translated to javascript at once. When you call Dialog.Visible:= False, it doesn't call the browser at that point, only when the event finishes.

You can call only the close of the dialog, and

- in Dialog.JQDialogOptions.OnClose do the rest.
or
- Start an IWTimer to do the rest.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQDialog

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.