Resizing TTIWAdvWebGrid at run time


I started testing the TTIWAdvWebGrid component version and got stuck immediately.
I cant resize the grid at run time!?
I put it inside a TIWRegion and aligned to client but it does nor follow the size of the region (aligned to browser).
Then I tried to delete the alignment and tried to set width and height manually but it does not change size!
What am I doing wrong?

Best regads, Mikael


Unfortunately the TTIWAdvWebGrid does not support client alignment.
By default the grid will autosize to the number of rows and columns.

You can disable autosizing by setting Scroll.Style to scAuto and UseFullHeight/Width to True. Then manually update the width and height values.


procedure TIWForm1.IWAppFormCreate(Sender: TObject);
  TIWAdvWebGrid1.Scroll := scAuto;
  TIWAdvWebGrid1.UseFullHeight := True;
  TIWAdvWebGrid1.UseFullWidth := True;

procedure TIWForm1.IWButton1Click(Sender: TObject);
  TIWAdvWebGrid1.Height := TIWAdvWebGrid1.Height + 100;
  TIWAdvWebGrid1.Width := TIWAdvWebGrid1.Width + 100;