CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Incorrect CellValue for checkbox in grid

by mark » 06 May 2021 07:39

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?
mark
 
Posts: 3
Joined: 05 May 2021 14:18

by Alexander Bulei » 10 May 2021 14:43

Hi mark,

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

BR
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQGrid

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.