CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Grouping

by Jorge Sousa » 03 Dec 2013 12:07

Hi George

This is not a bug

IWFrameRegion.AjaxReRender();

has nothing to do with FancyBox.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 03 Dec 2013 12:52

Then why image count in collection on browser side increases when i press f5?
"LoadImageGallery" contains ImageGallery.Clear and FancyBox.AjaxReRender implemented.
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 03 Dec 2013 15:56

Hi

Then why image count in collection on browser side increases when i press f5?


Because when you press F5 the whole Form is rendered including FancyBox.

But If you're using cg version >= 1.8.0.3161, we detected today a bug with TIWCGComponents (including FancyBox), only for IW14.0.22, it wasn't be called to render the javascript.

We're in fact releasing a new version, because of that, i hope this one can be a version to published as stable.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 03 Dec 2013 19:14

But If you're using cg version >= 1.8.0.3161

Yes, i'm using 1.8.0.3188b 14.0.22.
What release number will be?

we detected today a bug with TIWCGComponents
During research my report, or before? :)

i hope this one can be a version to published as stable
I found memory leak in layout demo (on version 1.8.0.3188b 14.0.22, didn't test with new releases yet)
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 03 Dec 2013 20:02

Hi George

During research my report, or before? :)


Before :)

I found memory leak in layout demo (on version 1.8.0.3188b 14.0.22, didn't test with new releases yet)


Mem leaks were also cleared, a few
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 04 Dec 2013 07:43

We're in fact releasing a new version, because of that

I tested with latest available version: 1.8.0.3199b 14.0.22.
This version not contains js render fix?
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 04 Dec 2013 10:28

Hi

This version contains a fix for the javascript generated in RenderAsync.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 04 Dec 2013 12:27

I just want confirm.
Is it normal behavior?
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

by Jorge Sousa » 04 Dec 2013 13:21

Hi

Depends on the code....
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by George » 04 Dec 2013 13:27

As far as i know, this code should not work as i demonstrated in demo and video...
Because, IWCGJQFancyBox.ImageGallery.Clear called each time when button pressed.

delphi code
procedure TIWCGJQFrame1.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
LoadImageGallery(false);
IWCGJQFancyBox.AjaxReRender; // <-- rerender
IWCGJQFancyBox.JQFancyBoxOptions.Show();
end;

procedure TIWCGJQFrame1.IWCGJQButton2JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
LoadImageGallery(True);
IWCGJQFancyBox.AjaxReRender; // <-- rerender
IWCGJQFancyBox.JQFancyBoxOptions.Show();
end;

procedure TIWCGJQFrame1.LoadImageGallery(OnlyLast: boolean);
const
LFBImages: array [0 .. 2] of string = ('Hydrangeas.jpg', 'Lighthouse.jpg', 'Tulips.jpg');
LFBImagePath = '/imgs/';
var
I, MaxImg, StartIndex: Integer;
LItem: TIWCGJQFancyBoxImageGalleryItem;
begin
IWCGJQFancyBox.ImageGallery.Clear; // <--- clear collection
if OnlyLast then
begin
StartIndex := 2;
MaxImg := 2;
end
else
begin
StartIndex := 0;
MaxImg := 1;
end;
for I := StartIndex to MaxImg do
begin
LItem := IWCGJQFancyBox.ImageGallery.Add;
LItem.Picture.Url := LFBImagePath + LFBImages[I];
LItem.Alt := LFBImages[I];
end;
end;


In my project, i added this code, to fix unexpected behavior:
delphi code
procedure TIWCGJQFrame1.IWFrameRegionRender(Sender: TObject);
begin
IWCGJQFancyBox.ImageGallery.Clear;
end;
Best regards!
George
 
Posts: 486
Joined: 23 May 2013 15:50
Location: Russia, Moscow

PreviousNext

Return to JQFancyBox

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.