Atozed Forums
TIWCheckBox in TIWGrid (IntraWeb 15.2.24) - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWCheckBox in TIWGrid (IntraWeb 15.2.24) (/thread-2308.html)



TIWCheckBox in TIWGrid (IntraWeb 15.2.24) - Lorbass - 03-02-2021

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!


RE: TIWCheckBox in TIWGrid (IntraWeb 15.2.24) - Alexandre Machado - 03-02-2021

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


RE: TIWCheckBox in TIWGrid (IntraWeb 15.2.24) - Lorbass - 03-03-2021

Find the test case attached