04-21-2023, 11:31 PM
@jeroen.rottink, the case where a new page is created in an async request (and the IWjQPageControl has been created before) fails with an AV, yes.
There is an easy workaround though:
procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
var
aPage: TIWjQTabPage;
begin
aPage := IWjQAccordion1.CreateSection('Testing');
Self.ComponentRemoved(aPage, '');
end;
The issue happens because the TIWjQTabPage shouldn't be rendered as a separate control, which is effectively happening in this case.
We will fix it in the next release, but in the meantime the workaround above can be safely used.
There is an easy workaround though:
procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
var
aPage: TIWjQTabPage;
begin
aPage := IWjQAccordion1.CreateSection('Testing');
Self.ComponentRemoved(aPage, '');
end;
The issue happens because the TIWjQTabPage shouldn't be rendered as a separate control, which is effectively happening in this case.
We will fix it in the next release, but in the meantime the workaround above can be safely used.

