TWebDBGrid, editable, insert

Dear Sirs,

TMS Web Core 1.6.2.0
RAD Studio Sydney (Delphi 10.4 Version 27.0.38860.1461)

we noticed a problem using TWebDBGrid in editable mode. See attached project:
WebCoreBugDBGrid.zip (325.6 KB)

  1. Run project
  2. Click button + (Insert) on navigator
  3. Click on the first cell of the new row
    a. LOldRow is already at the proper dataset cursor location so it makes no sense to move it.

After the click the wrong record is in edit mode:
after_insert_click

Kind regards

Another problem when you press right arrow key when grid is focused. Just run demo.

Demo project attached
WebCoreBugDBGrid2.zip (336.6 KB)

ERROR
Uncaught TypeError: Cannot read property 'cells' of undefined | TypeError: Cannot read property 'cells' of undefined at Object.GetCellElements

Other strange behaviours / problems:

  • BeforeScroll events are triggered even if you do not change current record

  • After editing a cell, clicking or moving to other cell in same row scroll event is triggered (and Post). Post should only be triggered when current row is changing and record is in edit or insert mode.This is likely result of dataset row cursor moving each time focused cell is changed.

We traced & solved all reported issues.
This will be addressed in the next update.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.