Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 6.0.0
-
Fix Version/s: 6.5.2
-
Component/s: Components
-
Labels:None
Description
The callbacks isLeaf(), getChildCount(), getChild() are called after opening some nodes for non opened TreeItems.
Example (s attachment):
1. Open 'Sophis e' --> callbacks are ok
2. Open Bond (child of 'Sophis e') --> callbacks for parent 'Sophis e' (maybe an error), callbacks for parent 'Bond' (ok), callbacks for parent 'Calypso' and its subtrees (is an error), callbacks for all other parents (is an error)
The problem gets attention when the tree renders large data amounts.
Attachments
Issue Links
| This issue duplicates: | ||||
| ZK-1510 | Creating a dynamic tree; treemode v6.5 has totally unexpected and unpredictable behavior while working as expected in v.5.0.11 |
|
|
|
Hi hshdev,
To investigate this issue, I have created a model to log the timing where the APIs are invoked. I found that the API will only be called correctly, it will not invoke other parents. That is, I did not see the issue you reported.
How did you verify that the APIs are called for all other parents? Can you provide me your code for proving this? I can take another look based on your code.
BTW I have here included the sample that I used for logging: