[ 
https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022074#comment-13022074
 ] 

Brent N Atkinson commented on PIVOT-734:
----------------------------------------

Until this is patched, there is a workaround. Before adding an item to an empty 
branch, call TreeView's setBranchExpanded(...) method on the empty branch. This 
installs the necessary BranchHandlers so that list insertion events are 
delivered to the proper places.

> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>
> When showEmptyBranchControls is false, adding items to empty branch nodes 
> does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. 
> The expected behavior is that the node reflects that it is non-empty and the 
> expander controls show up. The actual behavior is that there is no change in 
> the controls for the node.
> See the user-list thread for details: 
> http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to