Atozed Forums

Full Version: TIWCheckBox in TIWGrid (IntraWeb 15.2.24)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Another problem:

We use a TIWGrid in a frame.

The grid only consists of one column.
The control property of all rows is set with a dynamically generated TIWCheckBox (SubmitOnAsyncEvent = True).

However, changes to the CheckBox (Checked = True / False) are displayed; but they cannot be read out correctly.

That means:
The frame is displayed with IWModalWindow.
The grid is correctly filled with x lines.
The checkboxes show the current value.
The user makes changes and confirms them.
All CheckBoxes are then read out in a loop.
However, only the original values are then available.

Another Problem:
The event OnAsyncChange is assigned to the dynamically generated CheckBoxes, for example to display marked entries in bold:

procedure OnAsyncChange (Sender: TObject; EventParams: TStringList)
var
  C: TIWCheckBox;
begin
  C: = TIWCheckBox (Sender);
  if C.Checked then C.Font.Style:=[fsBold] else C.Font.Style: = [];
  C.RefreshAsyncRender;
end;

Result: All CheckBoxes are shown in a wild jumble!

Something wrong on our side?


Tnak you for hints!
It would be good if you could please create a small test case showing exactly what your problem is. It save an enormous amount of time trying to recreate it...
Find the test case attached