TreeView nodes don't expand
See original GitHub issueSteps to repro:
- Create an app with a TreeView that has some nodes with children.
I just created a new app from the ‘Uranium UI MAUI Blank Template’; added
<material:TreeView ItemsSource="{Binding Nodes}"/>to the main page; and defined the nodes by copying the ‘MyItems’ class and Nodes initialization code from the examples in the docs: https://enisn-projects.io/docs/en/uranium/latest/themes/material/components/TreeView - Run the app
- Click on one of the nodes to expand it
Expected Results: You can expand the node and see the children.
Actual Results: I can see a hover state over the chevron for a given node, but when I click it doesn’t expand. No error is thrown either it just does nothing.
My sample app to repro: https://github.com/Felicity-R/UraniumTreeViewTest
Tested on Windows 10, 19043.2251
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
asp.net - Making TreeView Nodes Not Expanded by Default
I have a Treeview i used as Navigation. By default when the page loads, the Nodes with subnodes are expanded. I want this...
Read more >Treeview - node not expanding
I have a TreeView with several nodes and if a special node (you will see in code) is deleted, the parent node should...
Read more >TreeNode.Expand Method (System.Windows.Forms)
The Expand method expands the current TreeNode down to the next level of nodes. ... The state of a TreeNode is persisted. For...
Read more >TreeView: Add a node to expandedKeys don't expand the ...
When I add a node to the expandedKeys from code, the TreeView don't expand the node. After I click on the node text,...
Read more >TreeView - Expand node after page inside that parent ...
Hi, I have implemented a TreeView with multiple nodes. The parent nodes don't contain an url, so it's just there to tell which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@enisn yep 2.1.1 fixed expand handling, but there is a new bug now: nodes with no children show expand button, while shouldn’t.
UPD: Ah, sorry, it was me trying to fix
Warning: 'IsLeaf' property not found on 'APIClient.MAUI.App.JsonTreeView.JsonTreeView+JsonTreeViewItem', target property: 'UraniumUI.Material.Controls.TreeViewNodeHolderView.IsLeaf'by addingIsLeaf = falseCan confirm 2.1.1 fixed the issue for me too. Thanks for the quick turnaround!