Page 1 of 1

Incorrect CellValue for checkbox in grid

PostPosted: 06 May 2021 07:39
by mark
Hi,

We recently migrated our application from Delphi 10.1 / IW14.2.5 to Delphi 10.4.1 / IW15.2.21, no code was modified during the migration.
On a frame, used on other forms, there is a IWCGJQGrid that has 2 columns defined with EditType = gcetCheckBox. For the grid the JQEvents.OnClick is implemented to use the value of the checkboxes like this:

Status := Grid.JQGridProviderCells.CellValue[column, row];

When clicking a checkbox the values that are read by the event handler are not the same as the checked/unchecked statuses of the checkboxes. When for example checking a box the first time, all values are read as null including the one that was ticked. Only after a few more clicks, values from prior clicks seem to get read. It looks like the onclick event handler is getting checkbox statuses from 1 or 2 clicks back.

Prior to the migration everything worked fine, what could be the cause?

Re: Incorrect CellValue for checkbox in grid

PostPosted: 10 May 2021 14:43
by Alexander Bulei
Hi mark,

Please send me the very simple testcase (without any depencies).
TIA

BR