The checked property of a parent node with ntCheckBox type in TWebTreeView is not updated based on UI interactions

testSource.zip (7.8 KB)

Environment

  • TMS Web Core Version: 2.9.1
  • Delphi Version: 12.2 Patch 2

Steps to Reproduce

Using the attached test project, compile and run it, then follow the steps below:

  1. Click the button labeled "add 2 Nodes (parent/child) to Treeview1" in the right pane.
    → A parent node and a child node will be added to Treeview1 in the left pane.
  2. Using the mouse, check both the parent and child node checkboxes in the tree view.
  3. Click the button labeled "check True/False to 2 TreeNode" in the right pane.
    → The webMemo at the bottom of the right pane will display the current checked state of each TreeNode.

Issue:
Even though the parent node appears to be checked in the UI, internally the checked property of the parent node remains False.

Program Description

  • "add 2 Nodes (parent/child) to Treeview1" button
    • Adds a parent and child TreeNode to Treeview1.
    • The two added TreeNode objects are stored in an array:
      arryTreeNode: TArray<TTreeNode>.
  • "check True/False to 2 TreeNode" button
    • Retrieves the TreeNode objects from arryTreeNode.
    • Displays the checked state of each TreeNode in webMemo.

Attachments

  1. Screenshot of the result:
  • The screenshot shows both nodes visually checked in the tree view.
  • However, the webMemo displays that the root node is NOT checked.
2025/09/09 14:56:45  root node created at 145641  is **NOT** checked.
2025/09/09 14:56:45  child node created at 145641  is checked.
  1. Test project (ZIP archive):
  • A minimal test project that reproduces the issue.

Thanks for reporting.
We traced & solved this issue. The next update will address this.