Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWCheckBox in TIWGrid (IntraWeb 15.2.24)
#1
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!
The way to success is always under construction ... but i see a light at the end of the tunnel  Idea Big Grin
Reply
#2
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...
Reply
#3
Find the test case attached


Attached Files
.zip   TST.zip (Size: 54.46 KB / Downloads: 2)
The way to success is always under construction ... but i see a light at the end of the tunnel  Idea Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)