Create on runtime ?

Hello,
I have a problem to create the DialogEx in runtime
I did:
and get a exception:
"Region "" does not have a valid container Parent!"
What do I wrong?
I have a problem to create the DialogEx in runtime
I did:
- Code: Select all
procedure TIWForm2.IWCGJQButton2JQButtonOptionsClick(Sender: TObject;
AParams: TStringList);
begin
ParamDialog:=TIWCGJQDialogEx.Create(self);
try
ParamDialog.JQDialogOptions.Title:='Parambox';
ParamDialog.Height:=100;
ParamDialog.Width:=300;
ParamDialog.Visible:=True;
ParamDialog.AjaxReRender(false,rramOldMethod);
Except
on e:Exception do begin
WebApplication.ShowMessage(e.Message);
end;
end;
end0;
and get a exception:
"Region "" does not have a valid container Parent!"
What do I wrong?