|
<< Click to Display Table of Contents >> Navigation: Forum > TIWCheckBox in TIWGrid (IntraWeb 15.2.24) |
03-02-2021, 03:03 PM:
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!
03-02-2021, 08:08 PM:
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...
03-03-2021, 05:38 AM:
Find the test case attached