FAQ Database Discussion Community


How to get the last nodes of a Treeview?

vb.net,treeview,treenode,axwindowsmediaplayer
So... I have a treeview that basically represents a playlist, and I want to get the nodes on the last level (the songs) to get their text and be able to create a Playlist for a AxWindowsMediaPlayer in the order the songs appear in the treeview, the treeview has categories,...

SWT TreeViewer expand and collaps at the same time when SWT.FULL_SELECTION is set

java,treeview,swt,jface
I have implemented a TreeViewer as followed and added a double click listener to it. This double click listener is supposed to expand/collapse a node. treeViewer = new TreeViewer(component, SWT.BORDER | SWT.MULTI ); treeViewer.addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent e) { final IStructuredSelection selection = (IStructuredSelection) e .getSelection(); if (selection...

JavaFx TreeView css

javafx,treeview
I am would like to create element looking and behaving as the one shown below. There is dark background and top list of 4 elements: "biblioteki", "Analiza" and so on. hen we click on one of them list is expanded and this item and its children gets light dark backgorund....

C# ComboBox SelectedItem.toString() not returning expected results

c#,combobox,treeview
I have a form that allows a user to add players to a roster, by entering the player name and selecting, from a combo box, the division to which the player belongs. When time comes to add the player to my TreeView control, the node that should display the division...

How to show multiple check boxes in a TreeView in C#?

c#,winforms,checkbox,treeview
I know how to show a single CheckBox for each TreeNode in a TreeView. I would like to show 3 CheckBoxes for each TreeNode in a TreeView. The reason for this is that there are 3 charts in my program, and each TreeNode represents a different series. I would like...

WPF with MVVM Add elements to a TreeView dynamically

c#,wpf,xaml,mvvm,treeview
I'm doing my first bigger project with WPF and my first project with MVVM. I want to fill a TreeView with values from a list of a self-defined class. The part of my XAML looks similar to this: <Window> <StackPanel> ... <TreeView> <TreeViewItem> <TreeViewItem /> <TreeViewItem.ItemTemplate> <HierarchicalDataTemplate ItemsSource="{Binding ListOfFoo}"> <StackPanel>...

XML Parsing. Hide Parent node

c#,xml,parsing,treeview,.net-2.0
So I have an xml file parsed to a TreeView list, currently I have about four levels of nodes when I only want three. I want to hide/remove the parent node or the top node since it's not much useful. I could do that by editing the XML file itself,...

How to manage key pressings for special purposes in Gtk# TreeView?

c#,treeview,cell,gtk#
I have a KeyPressed signal in Gtk#/mono C# for two different purposes which are not present in the default TreeView: a) go to the next cell by pressing TAB, and b) start editing by pressing any key. The TreeView is simple, it has a ListStore showing only rows and columns,...

Get the Parent node of a Child in WPF C# TreeView

c#,.net,wpf,treeview
I understand that programming in C# with WPF is different from traditional C# procedures so most of the online material do not state what I need. I have a TreeView control in my WPF Window and I have parent nodes and child nodes in it. I would like to store...

Add a node to TTreeView in C++ Builder

c++,treeview,c++builder
It is a very simple question that I have to ask, but I couldn't find the answer anywhere. I'm using C++ Builder XE6 and I want to use a TTreeView. I have found several tutorials about it, saying that the method to add a node is to do this :...

How to get a WPF Popup to close when focus is lost

c#,wpf,treeview,expander
From other post suggestions I have customized an expander so when pushed it opens a Popup with a TreeView in Everything is working as expected, except one thing. If i click outside the popup it doesn't close even though I have set StaysOpen=False (I have tried to replace the TreeView...

How to prevent TreeView rename from making a duplicate

c#,treeview,nodes
I've seen lots of posts asking a question similar to this, but none seem to answer the question. I have a TreeView of vendors like this: Soda Regular SmallCan SmallBottle Diet SmallCan Water Regular EcoBottle I created a context menu that allows the user to rename the selected node, but...

How to add items to treeview without duplicating it to other node with the same name

c#,regex,treeview,treenode
I have a problem on my coding. I want to add items to treeview by using regex and c#. But the problem is The nodes that are going to add have the same name. The code :: treeView1.Nodes.Clear(); string name; TreeNode Root = new TreeNode(); RootNode.Text = "RootNode"; treeView1.Nodes.Add(RootNode); MatchCollection...

C# The TreeView.Nodes.find method returns a collection of length > 0, but the index of returned node is 0

c#,treeview
I have a TreeView on my form that gets populated by user input. There are three values: Game night, division, and player name. The Treeview is organized by these values. Meaning division is a child of game night, and player name a child of division. When I add a player...

Recursion, parsing xml file with attributes into treeview c#

c#,xml,recursion,attributes,treeview
I'm currently working on a project where an application will take on XML files and display it into a treeview in C#. I'm using Visual Studio 10 to write this code. I cannot limit number of times the attributes are displayed. I used a foreach loop to loop through each...

How to search in a lazy-loading WPF MVVM TreeView?

wpf,mvvm,treeview,sql-server-ce
I need a TreeView to represent some hierarchical data from multiple tables stored in a SQL Server CE database. Before, the data was stored in xml and was simple deserialized on startup and everything was good. Now I was asked to move data to a database and I've faced a...

How can I disable “selection by clicking ” on GTK+3 treeview

python,treeview,gtk3
I have this code where I get a treeview and a sign when I click or move the up / down over the lines. For my application I need to disable the selection when the user clicks on a row, further I wonder if there's any way to block the...

How to populate a treeview from a XML file with multiple child nodes?

xml,vb.net,xml-parsing,treeview,populate
I´m trying to populate a TreeView component in VB.NET from a XML file. It´s a large XML file and I chopped it up in order to give you guys an idea about how it is structured. I´m new to VB.NET so I´m having a hard time to figure this out....

Create a treeview from a recursiv list C# Asp.net

c#,asp.net,list,treeview
i would like populate a treeview from a recursiv list, I have an item which also contains a list of items and so on. The number and levels of childnodes of parentnodes is not limitted. here is the class: public class item { public int Id; public string texte; public...

C# TreeView Programmatically Adding Child Nodes With GrandChildren And So On

c#,winforms,treeview
I'm currently working on a WinForm which is containing a TreeView. Somehow I can not manage to fill the TreeView properly. For more visibility: Parent Device - |-ChildDevice1- | |-GrandChild1 (not connected with ChildDevice2) |-ChildDevice2 AnotherParentDevice... and so on... (this is how it should look like) I tried to give...

what is “root:'data' ” extjs store config

javascript,extjs,proxy,treeview
I am very new to ExtJs and I have the following code for a treeView,,which has a default root in the beginning and then an Ajax call to a servlet .But i don't understand the 'root' field with value 'data' .Is data an alias or xType .Here is the code:...

How to update progress bar while working in the UI thread

c#,wpf,treeview
I have a ProgressBar and a TreeView. I populated the TreeView with a bunch of data, once it is applied I run through the visual tree of the TreeView basically forcing it to generate each of the TreeViewItems. I would like the ProgressBar to show how this is progressing. This...

Join collections for TreeView

c#,wpf,treeview
I have a class called LogEntry which is definded as Following: public class LogEntry { public LogEntry() { Children = new List<LogEntry>(); } public string Name { get; set; } public int Id { get; set; } public List<LogEntry> Children { get; private set; } public override ToString() { return...

Using image instead of default + and - signs in tree view

winapi,treeview,win32gui
I am developing a win32 application and I want to use my own images instead of default + and - signs in tree view. I also found here that I can use images in four cases- 1)An image, such as an open folder, displayed when the item is selected. 2)An...

Checkbox treeview functionality is not working

javascript,jquery,checkbox,treeview
This is below code is not working as expected. I mean, on this treeview, when I press the last 4 checkboxs, then, the first checkbox should be checked automatically. Whenever the sublevel checkbox['checkboxG2'] count comes to 4, then, the first level['checkboxG1'] should be selected automatically. Any help please? <html> <head></head>...

asp css with simple float not working on treeview

html,css,asp.net,treeview
My goal is to make a treeview in left and content place holder in its right. This is the HTML : <body> <form id="formMenu" runat="server"> <asp:TreeView ID="treeMenu" runat="server" DataSourceID="SiteMapDataSource1"> </asp:TreeView> <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> <div id="content"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> And this is my CSS : #treeMenu...

WPF TreeView select template

c#,wpf,treeview,itemtemplate
What is the WPF way to set different template for leafs and inner nodes in the TreeView, if I've got one hierarchical datatype in which the leafs and inner nodes are not differentiated by type?

C# Treeview, how to keep only one rootline checked?

c#,winforms,treeview
Using WinForms, desktop app. When node is checked, I have to uncheck nodes that does not share same root. So if I have 5 roots, with multiple childs ( deep tree ) and I check node that is child of root 1, I need to uncheck root 2-5 and all...

How to bind an ObservableCollection to TreeView (hierarchical)

c#,.net,wpf,xaml,treeview
I've the following TreeView: <Grid> <TreeView Background="LightGoldenrodYellow" Grid.Row="3"> <TreeViewItem Header="Section 4"> <TreeViewItem> <TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Total:" Width="150"/> <TextBlock Text="{Binding Pool.Count}" /> </StackPanel> </TreeViewItem.Header> </TreeViewItem> <TreeViewItem> <TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Code"...

JavaFx 8 TreeCell Drag and Drop

drag-and-drop,treeview,javafx-8,treecell
The objective is to use drag and drop on a treeView to move the nodes on itself.I have seen several examples where the events are handled in a redefined TreeCell, but only the detected event is triggered. This is my code: public class TreeCellImpl extends TreeCell<TreeItemContent> { public TreeCellImpl() {...

Treeview get full path to HDD

c#,winforms,treeview
I have a treeview of a repertory which is into my windows Desktop. And when I try to get fullpath of a node. Example: Test\ t1\ a b t2\ c d\ e When get fullpath of node t2, return : "Test\t2" but i would like to have "C:\Users\Neyoh\Desktop\Test\t2". Do you...

Should I 'destroy' a liststore (model of treeview) when destroy treeview?

python,treeview,gtk3,treemodel
I'm programming python + Gtk3. I have a Gtk.TreeView with a Gtk.ListStore as model. At some point of the program I need to destroy the treeview in order to put a fresh one on it's place. However I don't know what happens with the model. Should I destroy it, clear...

Is it possible to define a TreeView hierarchical view template for a 'plain' collection?

c#,wpf,mvvm,treeview,datatemplate
I have my model classes that look like this: class Base { public string Name { get; set; } } class Item : Base { ... } class Group : Base { public List<Base> GroupItems { get; private set; } } Then, I have a view model with an Items...

Provide different TreeCell conditionnaly in CellFactory

javafx,treeview,javafx-2,custom-cell
I have a treeview in which the cells must display different information according to the real implementation of the TreeItem's value. My domain model looks like: It seemed natural to me to split the behaviour of "how to display a Task in a cell" or "how to display a Group...

How to fix paint artifacts when replacing items in Tree View?

winapi,treeview,comctl32
I have a Tree View positioned in the content area of a Tab Control (the Tree View is a sibling of the Tab Control). When I remove tree view items, add new tree view items, and select one of them, the tree view is not painted correctly; everything above the...

Selecting GTK Treeview item from Code

c#,mono,treeview,gtk,gtk#
After i add some items to the GTK Tree View,i need to select the first item in the list from code to fire the treeviewcursorchanged event ie:when clicking on a tree view item.I need to select the first treeview item.But there is no select event. I populate the treeview with...

TreeView with inherited types

c#,wpf,xaml,mvvm,treeview
I want to display a TreeView containing elements implementing an interface. This interface is implemented by two main classes, which are the ones I want to display. The schema is something like: IElement Container : IElement ->public IEnumerable<IElement> Elements {get; set;} Element : IElement So basically, this TreeView must be...

ASP TreeView: All nodes have the same ID

c#,asp.net,webforms,treeview
I'm currently writing a custom web forms control with, among others, an embedded TreeView control. The content of this TreeView control is generated programmatically like this: public void PopulateTreeView(TreeView treeView) { // Initialize with a single root node. treeView.Nodes.Clear(); TreeNode currentNode = new TreeNode("root"); treeView.Nodes.Add(currentNode); // Some logic with basically...

Bug in treeview display when editing cell

java,javafx,treeview
I have two bugs when I use a treeview, here's what happen : BUG 1 : Not validate changes How to create the bug : Let's suppose I want to edit the cell "Id" in my treview. I enter something else : But I change my mind, I don't want...

WPF C# Treeview with dynamic list from database

c#,wpf,dynamic,treeview
I want to use a treeview to show a Question and an Answer. It will pull a list of questions to be answered and if they have been answered in the past it will show the answer to that question. Each answer will either be a list in a combobox...

How to add nodes in TreeView control from two different Forms in C#

c#,forms,winforms,treeview
My program: Form (Form1) contains: button1 control TreeView1 control Form (Form2) contains: burron1 control label1 control label2 control ClassArray public static ar2 array My aim is to make each element from ar2 array as a node in the TreeView1 control using both forms (Form1 and Form2). The tricky thing is...

Issues with MouseDoubleClick command on TreeViewItem using AttachedProperties

wpf,mvvm,treeview,attached-properties,attachedbehaviors
I am trying to attach a Command and CommandParameter property to a TreeViewItem so I can route a mouse double click event to a Command in the ViewModel. It appears that the double click event is never even fired. MouseDoubleClick: namespace VisualInspectionConsole.Commands { public class MouseDoubleClick { public static DependencyProperty...

Checkbox checked state of child node

c#,winforms,checkbox,treeview
I am using VS 2005 (.NET 2.0) C# working on a Winform with functionality of XML parsing to a TreeView. I'm planning to enable the checkboxes of the treeview list. Actually, I already enabled them. I found this code here while looking for some properties of TreeView and TreeNode that...

Python ttk Treeview: How to select a row? [duplicate]

python,treeview
This question already has an answer here: ttk treeview selection_set cant accept spaces 1 answer This must be something simple I'm missing, but I can't seem to figure out how to set the selection row in a Treeview using the selection_set method. I am confused by the ttk documentation...

AngularJS dropdownlist with treeview

angularjs,drop-down-menu,treeview,custom-controls
I am new to angularjs, i want to use dropdownlist with treeview structure. i used both dropdownlist and treeview control separately but find difficulty in using together. can anyone have idea about how to use both together(dropdownlist+treeview)

WPF TreeView HierarchicalDataTemplate set child to active based on ItemsSource object property

c#,wpf,treeview
I am working on a IRC client in C# WPF that has a TreeView to show the servers and channels the client is currently connected to in this format: Server Channel This is my current code: <HierarchicalDataTemplate DataType="{x:Type IRCLib:ServerConnection}" ItemsSource="{Binding Path=ActiveChannels}"> <TreeViewItem Header="{Binding Path=Config.ServerName}" Foreground="Black"/> </HierarchicalDataTemplate> What I want to...

Fancytree: Configure my own keyboard navigation

javascript,jquery,plugins,treeview,fancytree
I would like to know if there is a way to expand on the navigation that Fancytree offers, for instance, force the delete, cut, copy or paste methods from my contextMenu to occur when I press Delete, ctrl+x, ctrl+c or ctrl+v on my keyboard. I've been studying and using fancytree...

Treeview search results flat list

c#,search,treeview
How can I make the list on the right populate with only items which meet the search criteria? I'm not asking for the literal code necessarily, but just some general guidance on how to do so. I've already written the code to populate the list on the left with C#,...

Programmatically edit TreeView/TreeItem

java,treeview,javafx-8
Edit #2: Since it looks like a bug i already posted a bug report in the javaFx-jira. You have to have an account to have access to the issue. I will keep this post up-to-date, if there is new information. Original post: I have a simple UI with a button...

Treeview inside getChildern()

java,treeview,rcp,emf
Is it possible to create a treeview inside the getChildern() method of the content provider? I have a treeview whose getElements() method show some nodes coming from an enum for each node in this tree I want to have another tree view. So when the user expand one root node...

DataTrigger is not working

wpf,combobox,treeview,radio-button,custom-controls
I'm learning how to create custom controls in WPF, however I'm having problems about how to use the DataTrigger. My component is basically one ComboBox and I added 3 RadioButtons on the the top of it. Here's what I'm trying to do: I created an enum: public enum TipoTree {...

Getting Bootstrap 3 Tab Panes to Work with TreeView

twitter-bootstrap-3,tabs,treeview
I am trying to get the TreeView from BootSnipp here: 1 to work with Bootstrap 3 tabs. It works as expected initially, but breaks down after a few clicks, then responding/not responding arbitrarily. Here's the html+js+css I am working with: // ***************** BEGIN TREE JS ***************** $.fn.extend({ treed: function() {...

How to select the child node in TreeView in c# windows form

c#,treeview
I have one tree view in my windows form. I use the following function to select the node in that treeView. private void FindAndSelect(TreeNodeCollection collection, object toSelect) { //problem in this line becouse while converting the toSelect into IstructuredEntity is showing null. var entityToSelect = toSelect as Decoupling::IStructureEntity; if (entityToSelect...

Load different ascx's in aspx page

c#,asp.net,vb.net,treeview
On my aspx page I have on the left hand side TreeView for each of every node in the TreeView I want to load a different ascx which going to change only the right hand side of the page. Thats how my aspx.vb look like: Protected Sub Page_Load(ByVal sender As...

Simple Nested TreeView Xaml structure?

c#,wpf,xaml,mvvm,treeview
I am trying to build a WPF TreeView with three layers. CountryReportTitle is a string property and ArticleCategoryTitlesList is a collection, both exposed from my ViewModel. There is no class hierarchy defined. This is the structure I'm looking for: This is my attempted Xaml but I'm getting an exception in...

Get type of selectedItem in hierarchical treeview

c#,xaml,treeview
I have a hierarchical treeview with multiple types of items bound to different levels. I need to know what type of item is selected. The type of item will determine the visibility of menus elsewhere in the application. I understand that I can't give a hierarchical item a name, otherwise...

C# Treeview keys fullpath

c#,winforms,treeview
There is this treeview with nodes added like so: tree.Nodes.Add("key", "DisplayText"); tree.Nodes["key"].Nodes.Add("key2", "DisplayText2); I want to obtain the full path of the currently selected node, but I want the path of keys not the path of display text. If the second node is selected, the tree.FullPath property will return the...

Redmine 2.6.1 See Project in tree view

plugins,treeview,redmine,redmine-plugins
I am looking for a way to get redmine to show the projects list as a tree view. I have looked a lot in internet and so far have found two plugins that should do it but none of them work. The first on was: redmine_projects_accordion (https://github.com/reubenmallaby/redmine_projects_accordion) and the other...

How to programmatically select multiple nodes in RadTreeView in C#

c#,winforms,telerik,treeview
I want to programmatically select multiple nodes in my RadTreeView from Telerik component in a C# application. It's a winform. I've set MultiSelect property to True. But when I try this: myTree.SelectedNodes= someNodeCollection; It says: SelectedNodes has no setter Is there a way to do this programmatically?...

Event handler has dependency on call order

c#,winforms,treeview,refactoring,anti-patterns
On WinForm there is TreeView control. In AfterSelect event is private field selectedFolder updated. For event OnKeyDown for Delete key is event handler implemented that interacts data access layer : selectedFolder is passed as parameter to method DeleteFolder. The selected node of TreeView is also removed Code has following issue:...

Converting a JSON object to a formatted array via jQuery

javascript,jquery,json,twitter-bootstrap,treeview
I have a JSON object that I would like to convert to an array so that I can use it with the bootstrap-treeview jQuery plugin. To do so, I need the JSON object to be in this format: var tree = [ { text: "Parent 1", nodes: [ { text:...

How to change collapse and expand icon for a particular treeview in javafx?

css,javafx,treeview
I need to apply CSS to change collapse/expand icons for a particular treeview in my JavaFX application. FX:ID for it is treeView. However I have many other treeviews in my application and I don't want those icons to be changed. Change expand and collapse image TreeView JavaFX 2.2 Above link...

Edit item of treeview that don't contains String

java,javafx,treeview
My goal is to simply edit the cell of a treeview (to do so, I've read the doc of JavaFX). My problem is that my treeview doesn't contains strings, but my own type of data, that is call : Database. I got the error : Database$Variable cannot be cast to...

Bind XAML TreeView MaxHeight to Containers Height

c#,wpf,xaml,data-binding,treeview
I have the problem that i want to bind the max-height of my TreeView to the height of my UserControl but the binding doesn't work. I tried the following <UserControl> <StackPanel Name="Container"> <TextBlock>Header</TextBlock> <TreeView MaxHeight="{Binding ElementName=Container,Path=ActualHeight}"></TreeView> </StackPanel> </UserControl> I would expect, that if I resize my window, the UserControl resizes...

CheckBoxTreeTableCell Select All Children Under Parent Event

java,treeview,javafx-8
I'm trying to select all child check boxes from a parent root. The action is invoked when the parent check box is selected. Here's the pseudo/modified/shortened set up with scenebuilder: @FXML private TreeTableView<Info> testTable; @FXML private TreeTableColumn<Info, Boolean> checkBoxCol; Model: public class Info{ private final BooleanProperty onHold; public Info(){ this.onHold...

get name of treeitem Javafx

javafx,treeview
I want to get name of each treeitem node and the parents for each, then put them in treemap, but when I run this sample code I get these result as values : [TreeItem [ value: Function 12 ], TreeItem [ value: Function 13 ]] [TreeItem [ value: Function 6...

Building a TreeView issue

c#,treeview,kendo-treeview
I'm trying to build a treeViewItemModel with 3 levels, that may or not exist. Like this: From a webservice, I get an object that contains segments, each one has information about the characteristic and direction to which it belongs. But I can't seem to find a way to build a...

Wpf Treeview grouping

c#,wpf,treeview
I have a TreeView bound to a List<MyCustomType>. I need to display the list grouped by MyType.MyGroupingProperty and show the list items themselves as leaves. How can i do that? What i tried Since I need to display the list grouped by MyType.MyGroupingProperty, I create a CollectionViewSource, bind it to...

WPF Treeview complex hierarchy

c#,wpf,xaml,mvvm,treeview
I use MVVM pattern in my app. I have these (simplified version) VM classes : public class MainModule_VM { ... public ObservableCollection<Module2601_VM> ListModules{...} ... } public class Module2601_VM { ... public string GatewayName {...} public string FirmwareVersion{...} public string IPAddress{...} public string NbIoms{...} public ObservableCollection<Module2610_VM> ListModules{...} public ObservableCollection<ComPort_VM> ListCOM{...} ......

Tree Table - Setting children on react.js

javascript,treeview,reactjs
I'm trying to build a Tree Table that is capable of shown/hide their TR childs when clicked (among other things). I've grab some code from the web to generate easily generate a tree structure. The problem comes trying to set a parent/child relationship with this event. I'm really not used...

Dynamically set image of each node

wpf,xaml,treeview,datatemplate,datatrigger
So I have 3 levels of nodes in my TreeView: A single Root Node (should display Image1.png) Some second level nodes (should display Image2.png) Each second level node has some third-level nodes (should display Image3.png) I'm trying to use a DataTemplate to dynamically assign the display image to each node,...

Having trouble binding to a treeview in WPF

c#,wpf,xaml,data-binding,treeview
I am trying to make a treeview that represents data from a file. The file data has data packets organized into three different sections: Header Info, Operation Header, and Operation Data. The packets in Header Info and Operation Header are one level deep, while the packets in Operation Data are...

Python tkinter: How to serialize a treeview?

python,python-2.7,tkinter,treeview,pickle
I am working on a python tkinter application that reads initial data from yaml file into a hierarchical TreeView to be edited further by the user. To implement "save data" and "undo" functions, should I walk the treeview and reconstruct the data into a python object to be serialized (pickle)?...

Remove selected node removes all treenodes?

vb.net,treeview
I want to remove one node from the tree when I select it. When I select a node, my code removes it from the tree. So far so good. But then the selection passes to the next node, so my code removes that too. And keeps going until all the...

Css ( tree connectors )

html,css,css3,networking,treeview
i worked in a network site and i have a problem with the tree connectors so here is my css : .ch-item { width: 100%; height: 100%; border-radius: 50%; position: relative; cursor:pointer box-shadow: 0 1px 3px rgba(0,0,0,0.2); } .ch-thumb { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; position: absolute;...

Open custom ContextMenuStrip on right-click

c#,winforms,treeview
I am creating a TreeView with different types of TreeNodes, each with their own ContextMenuStrip menus. I have a class ElementTreeNode which inherits from TreeNode. I want to add a ElementContextMenu which inherits from ContextMenuStrip menu to it which should open when right-clicking on the node. My first approach was...

How can I select multiple values by selecting a checkbox and display the results in a text field?

angularjs,kendo-ui,treeview
I am using kendo treeview with AngularJS to get data from REST service. I want to be able to check multiple checkboxes and have them display in an input field. Here's what I have so far: HTML: <div class="form-group col-md-6 fieldHeight"> <label for="legEnty" class="col-md-4 required">Legal Entity(s):</label> <div id="multiDropDownDiv" class="dropdown col-md-8">...

JavaFX: how to handle dragging an item from a TreeView

java,treeview,javafx-8
For an application I'm developing I have a TreeView with (my own type of) TreeItems. This is working fine, and I get the items to display as expected. I now want to be able to handle dragging an item from this TreeView to another part of the app window and...

WPF manipulate selected item in treeview

wpf,vb.net,treeview,selecteditem
I have a treeview in which there are selectable items, with subitems which may trigger some code action. When the subitem is clicked, the action should be executed, but the parent item has to remain/become the selected item. The problem I'm facing is that item are not being deselected properly,...

JavaFX - how to set CellFactory for specific TreeItem

javafx,treeview,javafx-8
I have a TreeView, with many TreeItem. what i want to do is that i enable modification for the selected TreeItem and disable it for others. To get all the TreeView to be modifiable i use : syTree.setEditable(true); syTree.setCellFactory(TextFieldTreeCell.forTreeView()); } syTree.setOnEditCommit(new EventHandler<TreeView.EditEvent<String>>() { @Override public void handle(TreeView.EditEvent<String> t) { syTree.getRoot().getChildren().set(syTree.getRow(t.getTreeItem()),...

JAVAFX - beginner's mistake?

javafx,treeview
Probably it just a beginner's mistake, but whenever I am trying to create a new FXML project and add this sample code to the main.java (sample was written by Oracle itself to show example, so the code could not be wrong) I got exception error. BUT! If I delete this...

multiple treeviews for data selection

javascript,html,css,treeview,html-lists
I have an assignment that needs to be done in a very specific way. I have all the back end code done, but cant seem to figure this part out, and it's driving me mad. Essentially the UI is required to have 2 tree views one on the right and...

Treeview code cuts after partial completion of code

vb.net,treeview,tree-nodes
I have the following code which works for one parent treenode with x-amount of children but I also wanted to create another parent node but thistime round populate it with dwg file names... For some reason it cuts after having only taken account with the xls extentions I also want...

Create a childnode in TreeView from right click

c#,wpf,xaml,mvvm,treeview
This is the code I have set up for binding the TreeView from a Tree data structure in my code: public class ExtendedTreeView : TreeView { public ExtendedTreeView() : base() { this.SelectedItemChanged += new RoutedPropertyChangedEventHandler<object>(___ICH); } void ___ICH(object sender, RoutedPropertyChangedEventArgs<object> e) { if (SelectedItem != null) { SetValue(SelectedItem_Property, SelectedItem); }...

unwanted treeview node duplicating at the end of list

vb.net,treeview
I have the following code but cant seem to find a reason (nor a solution) to why the parent node keeps appearing at the end of the list as a duplicate? Imports System.IO Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim di As New...

Nothing happening when calling Bootstrap Modal from Angular Treeview directive

angularjs,twitter-bootstrap,treeview
I'm using Angular Treeview to build a hierarchy in my website. I've added a Bootstrap Dropdown to each node in the hierarchy, it is displayed when the user clicks on the node label. The menu items displayed in the dropdown is different depending on the type of the node. All...

Customize treeview in Doxygen

treeview,doxygen
I am trying to use Doxygen for the first time and so far I am pleased with most things. You can say the manual I am creating consists of two parts: one that is built up using .dox-files containing general information about the product; then part two is built from...

Form a tree of files and folders

c#,recursion,datatable,tree,treeview
How can I recursively get all folders and files tree from folder? I need to put this tree into DataTable and form a treeView from it. I have a little problem with forming recursion methods, for now I only have a draft which doesn't work properly: using System; using System.Collections.Generic;...

JavaFX2 TreeView menu create

menu,javafx,treeview,fxml
I have a Treeview with menu content, which is working. I am just not sure how can I implement more root menu to add? Because this code only shows the "File" menu and all of submenus, but not the other roots. -Also I would like to ask how could I...

WPF Speed Load Time of Expanding a Specific TreeView Element

wpf,optimization,treeview
I have been trying to find out specific ways of improving the load times of a treeview element that contains 1500 flat nodes. At the moment it takes over 15 seconds to expand a single node. I have tried the suggestions regarding virtualisation but its my understanding that virtualisation basically...

Get a hierarchical tree from different referenced tables with SQL and PHP

php,sql,treeview,hierarchical
I have multiple tables all with a similar basic structure: biopsy_p0 id | biopsy_id | introduced biopsy_p1 id | biopsy_p0_id | introduced biopsy_p2 id | biopsy_p1_id | introduced My goal is to get a treeview of the dependencies bewteen biopsy_p0.id->biopsy_p1.biopsy_p0_id->biopsy_p2.biopsy_p1_id I tried to do it only with SQL but as...

Why does try catch error in recursive function C#

c#,treeview
I've created a function used to populate a treeview with a targeted directory. However when I try to implement and error check to skip over folders which may have folder permission restrictions I get an error. Why do I get this error and how do i fix it? Thank you...

How to change the color of treeitem expand and collapse arrow in javafx?

javafx,treeview
I have got some trouble with treeitems of a treeview. There are expand and collapse icon-arrows, when you have child-treeitems. I only know how to change the background-color of this expand/collapse icons. But I don't know how to change the color of the arrow. .tree-cell .tree-disclosure-node { -fx-background-color: #CCCCCC; }...

Treeview created at runtime not displaying nodes

c#,winforms,treeview
I have two treeview controls, one is manually added at design time and the other is created at runtime. The string ParentNode should be displayed on both sides of the panels but it's not displaying on the treeview created at runtime. I'm not sure if it's something basic I'm missing...

Error Treeview in asp.net

asp.net,treeview
Help me! What's wrong with this code error in TreeNode ParentNode = new TreeNode(children); public partial class ViewTree : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { String[] nodeStr = { "Puasa", "Puasa Sunah", "Ramadhan", "Puasa Kamis", "Puasa Senin" }; List<TreeNode> childs = new List<TreeNode>(); foreach (String s in...

Adding a Node in the third level in a TreeView in C#

c#,exception,treeview
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dll. This is my line of code: View.Nodes[View.Nodes.IndexOf(Node)].Nodes[View.Nodes.IndexOf(Node2)].Nodes.Add(Title3); "View" is a TreeView. I wonder how to add a node in the third level....

Using FileSystemWatcher to delete Childnode from TreeView, getting “Cross-thread operation not valid” error

c#,.net,multithreading,treeview,children
A FileSystemWatcher is set up to update the TreeView to reflect the files in the directory on disk. It fires as expected and the search through the TreeView returns the correct node, but when I issue the nodeToDelete.Remove() command, I get the following error: An unhandled exception of type 'System.InvalidOperationException'...

Hide Node in Treeview List. in C#

c#,winforms,xml-parsing,treeview
I am using VS 2005 C#, working on an unfinished WinForm. I have parsed an XML to a treeview listing but I'm encountering some problems. I wanna know if there's a way to hide/filter/remove a certain node containing a "_this_text" in its name without having to depend on a textbox....

VB.Net - How to dynamicaly search for a string in all TreeView nodes expanding and collapsing nodes matching (or not) the search string?

vb.net,search,treeview,collapse,expand
I´m trying to implement dynamic search on a treeview component, and I´m almost done with it, except that since it´s a dynamic search based on the textchanged event of a textbox, the first characters of the search string are always found, so the search function expand all nodes because they...

Populate treeview with user created tables, and their columns

c#,.net,treeview,database-schema
I am learning C# and .NET on my own. I am trying to learn how to use GetSchema. What I am trying to do is this: Open MS Access database and populate treeview control with database schema. I want to populate parent nodes with user created table names, and their...