CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

New features in 1.7-2.1, some questions.

General discussion

by George » 19 May 2014 14:45

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;
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 19 May 2014 15:40

Hello

If the n regions have align, you have to add the scrict 'Body_OnResize();' after
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 21 May 2014 13:08

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.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 29 May 2014 08:16

I created new frame with dialog region, and IDE field "name" not works.
Name must be "IWFrameRegion" for some reason?
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 29 May 2014 09:16

Hi George,

Name must be "IWFrameRegion" for some reason?


Ask atozed about this.

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

by George » 30 May 2014 22:19

Hi!
2.1.0.3648
Core:
- CHANGED: default method of CGRenderAsyncMethod / AjaxReRender now is rramOldMethod

Interesting change..
Is It better to use old method?
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Alexander Bulei » 02 Jun 2014 09:37

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

by Jorge Sousa » 02 Jun 2014 09:59

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.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 02 Jun 2014 11:12

Hi!
Thanks for response.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by George » 23 Jun 2014 08:47

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.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

PreviousNext

Return to General - Archive

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.