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.
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.
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;