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!
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!
The way to success is always under construction ... but i see a light at the end of the tunnel