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
2 answers

Need a Good List of Shortcuts for Navigating a TreeView

What shortcut sets have you seen that you would consider logical and easy to remember that could be used for navigating a tree view? They need to be complementary to Windows shortcuts and not conflict with any of them. Specifically, I'm looking for…
lkessler
  • 19,819
  • 36
  • 132
  • 203
2
votes
1 answer

Access text selection within a TreeNode (WinForms)

Is it possible to access information about the text selection within an editable TreeNode of a WinForms TreeView? I discovered methods such as BeginEdit() and EndEdit(bool cancel), but I need finer granularity of control -- something like…
dbkk
  • 12,643
  • 13
  • 53
  • 60
2
votes
1 answer

Best way to remove item in a v-treeview?

i need to remove an item from a v-treeview component. What is the best way to do this ? Does it require a reload of the tree ? The component : https://vuetifyjs.com/en/components/treeview Thanks for answers, S.
2
votes
1 answer

С++ Microsoft MFC TreeView Icons

I have written a code of the TreeView Control by a blog article. I am trying to add icons to list items. But icons are no rendered. I have a next code: void CLeftView::OnInitialUpdate() { CTreeView::OnInitialUpdate(); // TODO: Add items by…
HailToTheVictor
  • 388
  • 2
  • 8
  • 28
2
votes
1 answer

return-object in Treeview causes "Maximum call stack size exceeded" Vuetify

I have a Treeview and I am interested in accessing the entire object once a node is selected. In treeview there is a property named return-object that ideally does that. return-object: When true will make v-model, active.sync and open.sync…
DjSh
  • 2,776
  • 2
  • 19
  • 32
2
votes
2 answers

Tree view (pure HTML/CSS/JS) problem in js

I have a question about Tree view in pure HTML/CSS/JS files. I can make Tree view with HTML/CSS successfully and get help from w3school, you can see my code here: html file: var toggler = document.getElementsByClassName("caret"); var i; for (i…
2
votes
1 answer

Javafx treeview cell factory with gridpane

I have a TreeView and the GridPane contains multiple Nodes like Buttons and Labels. The amount of nodes inside the GridPane varies. I need the cell factory to get the MouseEntered event but when I use the code below then no content gets…
Panderas
  • 55
  • 1
  • 8
2
votes
0 answers

Performant way to filter WPF virtualized TreeView

I've got a hierarchical data structure which i'm trying to visualize with a WPF TreeView and hierarchical data templates. The number of items can reach millions, so i decided to try the virtualization features which work easy and well, besides that…
wonko realtime
  • 545
  • 9
  • 26
2
votes
1 answer

Get TreeView nodes in sorted order

We have a legacy application written in VB6 using the default Microsoft TreeView control to display hierarchical data. Since there's a lot of information in this TreeView we thought about implementing a small filter/search possibility for the…
Nostromo
  • 1,177
  • 10
  • 28
2
votes
1 answer

Set treeview.SelectedNode by index (List)

I want to set the TreeView.selected node by itterating a int List but I can't figure out how to set the childNodes. I have the following code in my custom control: private void SetSelectedNode() { if (MySelectedNodeIndexes == null)…
Jan-WIllem
  • 91
  • 13
2
votes
2 answers

searching in treeview with scrolling

I am trying to implement search in ttk.treeview table. There are obviously some answers already and I am using one of them (see the code below). However I want to extend the question. Given the code below, how to make it so that in addition to…
user2333940
  • 113
  • 8
2
votes
2 answers

Search in JSON Tree structure preserving Structure

I have a tree structure like below, { uid: 1, children: [ { uid: 2 }, { …
2
votes
1 answer

WPF ItemsControl get container from data object (TreeView, Multiselect)

How can I get the Container for an object in WPF ItemsControl. I am writing a multiselect treeview with bindable SelectedItem und SelectedItems Dependency Properties. So long everything works just fine. The only thing is, when I click on an item in…
Daniel Bişar
  • 2,663
  • 7
  • 32
  • 54
2
votes
1 answer

How do I properly handle a PreviewMouseDown event with a MessageBox confirmation?

Earlier I asked how to cancel a WPF TreeViewItem.Selected event. The answerers suggested I instead handle the PreviewMouseDown event before the selection even takes place. That makes sense. I've tried to do that... XAML...
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
2
votes
1 answer

Save TreeView As TXT or XML

Is there a way to save all the treeview items in visual basic as an TXT file (I Prefer TXT) or XML? I also want to save it to my.settings.
Ruben
  • 33
  • 1
  • 5
1 2 3
99
100