Page 12 of 13

Re: New features in 1.7-2.1, some questions.

PostPosted: 19 May 2014 14:45
by George
cgdevtools_support wrote:Hi
You just need to call RegionN.AjaxReRender

Indeed :)

What if new region placed in frame? Is it possible to render only new region? This code doesn't show new region.
// TPostFrame = class(TIWCGJQFrame)
delphi code
procedure TMainForm.AddButtonJQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
f: TPostFrame;
begin
f := CreateNewFrame();
// ForumRegion.AjaxReRender();
f.TopRegion.AjaxReRender();
end;

function TMainForm.CreateNewFrame(): TPostFrame;
var
NewName: string;
begin
NewName:= CGFindUniqueComponentName(self, 'frame');
Result := TPostFrame.Create(Self);
Result.Name:= NewName;
Result.Parent:= ForumRegion;
Result.Align:= alTop;
TPostFrame(Result).TabOrder := MSGCount + 1;
end;

Re: New features in 1.7-2.1, some questions.

PostPosted: 19 May 2014 15:40
by Jorge Sousa
Hello

If the n regions have align, you have to add the scrict 'Body_OnResize();' after

Re: New features in 1.7-2.1, some questions.

PostPosted: 21 May 2014 13:08
by George
Hello!

In IW14, IWCGJQMapping use IW Content handlers to work?
Is it possible to avoid creation of new session, when server was restarted?
Test case.

Re: New features in 1.7-2.1, some questions.

PostPosted: 29 May 2014 08:16
by George
I created new frame with dialog region, and IDE field "name" not works.
Name must be "IWFrameRegion" for some reason?

Re: New features in 1.7-2.1, some questions.

PostPosted: 29 May 2014 09:16
by Alexander Bulei
Hi George,

Name must be "IWFrameRegion" for some reason?


Ask atozed about this.

Best Regards.

Re: New features in 1.7-2.1, some questions.

PostPosted: 30 May 2014 22:19
by George
Hi!
2.1.0.3648
Core:
- CHANGED: default method of CGRenderAsyncMethod / AjaxReRender now is rramOldMethod

Interesting change..
Is It better to use old method?

Re: New features in 1.7-2.1, some questions.

PostPosted: 02 Jun 2014 09:37
by Alexander Bulei
Hi George,

This was changed because of the compatibility of the projects that were developed by customers before introducing the new method.
And also, because of some problems, as the new method performs javascript asynchronously (don't stop/wait), the javascript generated after AjaxReRender/ RenderRegionAsync, in some cases, can be executed before the javascript in AjaxReRender/ RenderRegionAsync.

Best Regards.

Re: New features in 1.7-2.1, some questions.

PostPosted: 02 Jun 2014 09:59
by Jorge Sousa
Hi George

Since the new method is asynchronous in browser, it requires to be the last thing called in an ajax event, and for this reason was not fully compatible with the previous method, and as such it was leading to breaking changes.

Re: New features in 1.7-2.1, some questions.

PostPosted: 02 Jun 2014 11:12
by George
Hi!
Thanks for response.

Re: New features in 1.7-2.1, some questions.

PostPosted: 23 Jun 2014 08:47
by George
Hi!
Found that when upload used inside dialog with modal = true, button not work. Demo.
As workaround, i set z-index = 1002 to upload button.