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:
- 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 toTreeview1
in the left pane. - Using the mouse, check both the parent and child node checkboxes in the tree view.
- Click the button labeled "check True/False to 2 TreeNode" in the right pane.
→ ThewebMemo
at the bottom of the right pane will display the current checked state of eachTreeNode
.
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
toTreeview1
. - The two added
TreeNode
objects are stored in an array:
arryTreeNode: TArray<TTreeNode>
.
- Adds a parent and child
- "check True/False to 2 TreeNode" button
- Retrieves the
TreeNode
objects fromarryTreeNode
. - Displays the
checked
state of eachTreeNode
inwebMemo
.
- Retrieves the
Attachments
- 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.
- Test project (ZIP archive):
- A minimal test project that reproduces the issue.