question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TreeView nodes don't expand

See original GitHub issue

Steps to repro:

  1. 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
  2. Run the app
  3. 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:closed
  • Created 10 months ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
toxsedyshevcommented, Dec 6, 2022

@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 adding IsLeaf = false

0reactions
Felicity-Rcommented, Dec 6, 2022

Can confirm 2.1.1 fixed the issue for me too. Thanks for the quick turnaround!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found