Questions tagged [treeview]

TreeView control is used to display hierarchical information.

A tree view (control) displays a hierarchy of nodes, where the user can expand and collapse these nodes while navigating through the control. Often a tree view will provide the user the ability to view or edit additional information relating to the node selected.

Tree views are often used to present hierarchical data, such as an XML document or files and folders structure.

9439 questions
2
votes
1 answer

How to give MaxWidth (or custom styling) to the ToolTip in a TreeView

I have a ResourceDictionary that has a TreeView. Here, I am trying to give a MaxWidth to my MainItemStyle's tooltip (as my bound text 'TxtDescription' is very long), and for doing that i tried to give a template to this tooltip but it got applied…
Joe
  • 97
  • 10
2
votes
1 answer

Filter TreeView Nodes in PowerShell

I have a ton of Nodes in my TreeView, and have a textbox that filters through them to highlight the matched search. However, its a bit messy as it shows all the other nodes, and after I change my search, it leaves all nodes expanded. I am trying to…
DeadLink
  • 93
  • 12
2
votes
1 answer

How to Add an item to All Tree Array's Objects in Js?

I would like to id all the objects inside my tree array sequentially. To do this, I need to iterate all the array objects and objects' children, grandchildren etc.. and insert rowId to each. What I have; rows={[ { car: 'Audi A4', city:…
Sabri Meviş
  • 2,231
  • 1
  • 32
  • 38
2
votes
2 answers

Generate Treeview from Url in pure Javascript

I am getting the Url of files in the form of array like below and I want to achieve an object like this var mainObj = [ { name: "Home", files: ["excel doc 1.xlsx", "excel doc 2.xlsx"], folders: [{ name: "Procedure", …
Idexigner
  • 45
  • 8
2
votes
1 answer

WPF TreeView Cancel TreeViewItem Selection

I've been looking for a solution to this problem but I still can't find an adequate solution yet. Please help. Basically, I have a treeview that's bound to a list of objects. When the user clicks on a treeviewitem, I load data for a data grid…
2
votes
1 answer

Duplicate TreeView's undelying rows to create a copy of exising TreeView

hi to the best my real friends . thank you and my favorite StackOverFlow.com i have a TreeView control to view some hierarchical data . as you know there is a underlying DataTable (base on a sql server table) as DataSource to this TreeVeiw . my…
Mostafa Armandi
  • 879
  • 1
  • 11
  • 24
2
votes
0 answers

Prevent automatic selection of the primary TreeView node

I have multiple tabs which represent filters for a specific view. One of those tabs is a TreeView called SOTree. There's a button to clear all filters. If I click a node in SOTree, it highlights said node and filters the view. I can then clear all…
Infrisios
  • 201
  • 2
  • 8
2
votes
1 answer

WPF TreeView binding command and passing which element was clicked on

How to bind command to element in TreeView. I have MainWindowViewModel with TreeViewCommand and I tried to add button around element but command didn't wont to be called. Is there any other way to call command and pass which element was clicked…
2
votes
1 answer

d3 tree diagram with straight links

I'm creating a tree diagram with both tree and radial visualization. I'm using var radialDiagonal = d3.svg.diagonal.radial() .projection(function (d) { return [d.y, d.x / 180 * Math.PI]; }); and var diagonal = d3.svg.diagonal() …
marco burrometo
  • 1,055
  • 3
  • 16
  • 33
2
votes
3 answers

C# tree is duplicating every node when I add to it

So basically what I am doing is building a tree backwards. I am starting at the leaves, then adding their parents, then theirs (it is a 3 level tree in the end). I have no problem adding the leaves (I query a database, and for each entry create a…
Toadums
  • 2,772
  • 8
  • 44
  • 67
2
votes
0 answers

TreeView in Angular 8 from complex json

I want to create a TreeView in Angular with complex json data without restructuring it into a specific format.I have used jqTree but it needs restructure of JSON into a particular format as it cannot pick up the hierarchy automatically. Also, my…
Samita
  • 21
  • 2
2
votes
1 answer

JavaFX: display stored CheckBoxTreeItem selection in TreeView

I use a treeView to select sections which later shall be displayed on a report. To improve the user-friendliness I decided to save the selection, so the user doesn't have to select the same sections the next time again. I have saved the selections,…
Yupp
  • 315
  • 3
  • 18
2
votes
4 answers

How to remove tree node and move its node node upwards?

Actually in my treeview ,when i remove a tree node it removes all its child node, But i need to move its child node upwards instead of removing .I have to use in winforms in c sharp. Anybody help me out.
Prakash Kunwar
  • 797
  • 4
  • 14
  • 28
2
votes
1 answer

Delphi TTreeView: get root node count and root node by index?

Every TTreeNode can give me its number of direct children using Node.Count, and I can get any child by index using Node[Index]. I am searching and searching but it seems this not possible for root nodes?? Do I really have to count them myself? And…
maf-soft
  • 2,335
  • 3
  • 26
  • 49
2
votes
1 answer

Add color to checkbox in Odoo10 according to condition

Need to add color to checkbox in list view according to a condition like tree view decorator. If any line in tree view doesn't satisfy certain condition then need to change color of checkbox in odoo 10
Thayif kabir
  • 715
  • 5
  • 20