Page 1 of 1

IWCGJQPlot is not shown on the Tab

PostPosted: 26 Jun 2015 12:17
by asp
Hi!

When several IWCGJQPlots are placed on the tabs of the IWCGJQTabs component, only the plot placed on the active tab is shown. No other plots appear when you select another tabs. See sample project in the attachment.

Re: IWCGJQPlot is not shown on the Tab

PostPosted: 26 Jun 2015 12:19
by Alexander Bulei
Hi asp,

You need call ajaxrender on tab show.
It's a know problem, the jqplot doesn't render on invisible element.

Best Regards.

Re: IWCGJQPlot is not shown on the Tab

PostPosted: 26 Jun 2015 13:33
by asp
OK, thank you.

Alexander Bulei wrote:Hi asp,

You need call ajaxrender on tab show.
It's a know problem, the jqplot doesn't render on invisible element.

Best Regards.

Re: IWCGJQPlot is not shown on the Tab

PostPosted: 04 Sep 2015 10:43
by tonyzhou
Hi,
Bulei,
I called ajaxrender on JQTab show.
but continuous switching between tab, all of the JQTabs are Activei
delphi code
procedure TIWForm1.IWCGJQTabs1JQTabOptionsSelect(Sender: TObject;
AParams: TStringList);
begin
if IWCGJQTabs1.ActiveTabIndex = 0 then
begin
IWCGJQRegion2.Hide;
IWCGJQRegion1.Show;
IWCGJQPlot1.JQPlotData := '[[3,7,9,1,4,6,8,2,5]]';
IWCGJQTabs1.Tabs[0].AjaxReRender(True, false);
end
else
begin
IWCGJQRegion1.Hide;
IWCGJQRegion2.Show;
IWCGJQPlot2.JQPlotData := '[[8,2,4,6,5,7,3,9,0]]';
IWCGJQTabs1.Tabs[1].AjaxReRender(True, false);
end;
end;

Is my method a problem?
taballactive.jpg

Re: IWCGJQPlot is not shown on the Tab

PostPosted: 04 Sep 2015 15:18
by Jorge Sousa
Hello

Put a IWCGJQRegion in each tab and call Region.AjaxReRender

Re: IWCGJQPlot is not shown on the Tab

PostPosted: 04 Sep 2015 16:10
by tonyzhou
Thank you for your quick reply, My App works Excellent