9,504 questions
0
votes
1
answer
134
views
Horizontal scrollbar on tkinter treeview is not working
I am using tkinter, pandas and treeview.
The treeview is to display an excel file via filedialog with 15 columns, which is very lengthy, hence I needed a horizontal scrollbar.
However the scrollbar ...
0
votes
1
answer
84
views
How can I Set Focus to an item property in a TreeView
Set Focus to an item property in a TreeView
The TreeView looks like:
<TreeView
Name="Tree"
BorderThickness="0"
ItemsSource="{Binding Items}">
<...
0
votes
1
answer
100
views
WPF TreeView how to align the control?
I want to build a web page–like effect that displays a directory tree with multi-level nesting. The left side should show the directory names, and the right side should display operation buttons ...
1
vote
1
answer
158
views
LeetCode 199. Binary Tree Right Side View constant memory complexity
I'm trying to solve LeetCode 199.
Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
I've ...
4
votes
2
answers
159
views
ToolTip.Popup event not firing with ToolTip.Show() in .NET Framework
I have an old WinForms application with a normal TreeView, where I need to show customized tooltips for individual nodes.
I am using a ToolTip component (OwnerDraw=true and IsBalloon=false), and I ...
5
votes
1
answer
168
views
How to get folders and their subfolders with their paths?
// data fetched from database, it's dynamic
$treeData = [
['id' => 1, 'name' => 'Root A', 'parent_id' => 0],
['id' => 2, 'name' => 'Child A', 'parent_id' => 1],
['id' =&...
4
votes
1
answer
105
views
Customized tooltip for TreeView nodes fails due to the Popup event not firing
We have an old (very old) WinForms application that depended on some 3rd party components that we are no longer allowed to use. One of those components was used to display tooltips on individual nodes ...
1
vote
1
answer
118
views
C# WPF strict MVVM: Basic TreeView SelectedItem ViewModel Problem
I’m trying to bind the SelectedItem of a WPF TreeView to a property in my MainViewModel in a pure MVVM setup (no code-behind).
Since TreeView.SelectedItem is not a dependency property, I created an ...
0
votes
1
answer
50
views
I am attempting to bind a WPF TreeViewItem to a TreeView and I'm getting an empty TreeView and two binding failures
I am building the framework of a MVVM app. I'm currently working on a simple TreeView contained in a UserControl. I have set the context to my ViewModel and have been able to successfully bind ...
0
votes
1
answer
203
views
Memory exception when adding a node to a Win32 TreeView (in code that has been working for 2+ years!)
I am getting a memory exception in (unchanged) code that has been working for 2+ years (code is unchanged, in a Git repo).
Here's the code that is causing the exception:
HTREEITEM getTreeNode(HWND ...
1
vote
1
answer
112
views
Delphi TTreeeView Horizontal Scroll and custom item draw
We have implementation that uses OnCustomDrawItemEvent of treeview to draw items.
NodeRect := Node.DisplayRect(true);
TextRect(NodeRect,NodeRect.Left, NodeRect.Top, sometext);
The issue is that some ...
1
vote
2
answers
154
views
Treeview with checkboxes in Delphi and use of csPartial
I want to achieve the following (using Delphi 12.2):
A TreeView with Checkboxes and two levels (each parent node has two or more child nodes, but no grandchild nodes).
Click a parent node: it becomes ...
0
votes
1
answer
94
views
Changing the tree node text color conditionally
The following Javascript code used when initializing the tree region to colorize the tree node texts.
function( options ) {
options.makeNodeAdapter = function(data, types, hasIdentity) {
...
1
vote
1
answer
68
views
Hierarchical treeview from mysql data
I need help to build a hierarchical treeview taking data from a mysql table with these columns: ID, ID_parent, Description. I managed to fill only the first level list and I need to create a function ...
0
votes
1
answer
120
views
Selection item in treeview tkinter python
I want to get the index of a row in a Tkinter treeview without clicking on the row.
I have a three-column treeview that displays correctly.
In the first column, I have values, each unique.
For example,...
0
votes
1
answer
39
views
How to make styles behave similarly treeview with child controls
I have a treeview with various controls in a treeviewItem, Textblocks, textboxes, checkboxes, and radio buttons. The problem is strictly cosmetic and only applies to when the treeview node is selected....
0
votes
1
answer
81
views
I can't find a way to change the WPF Treeview togglebutton's size
I have an application on production with a TreeView control but when the client want to expand or collapse the tree, he finds it very annoying to click on the toggle button because the button is too ...
0
votes
0
answers
53
views
In my ionic angular project, I have included a primeNG tree. In my tree, the toggle buttons are not getting indented
This is my html code. I have put indentation to the nodes using typescript, but toggle button are not getting indented.
<p-tree [value]="treeData" selectionMode="single" [...
0
votes
1
answer
87
views
Tkinter Treeview rows inserted but not displaying — values confirmed via .item() and .get_children()
I'm building an admin panel using Tkinter in Python. I'm using ttk. Treeview to display computed salary data. I call tree.insert(...) and the data is inserted — I can confirm the values by calling:
...
1
vote
2
answers
98
views
How to disable text selection on a TreeView (WinForms .NET)
I am creating a custom treeview control for my winform application. In doing this, I noticed that there is a really annoying feature of the treeview I am having trouble removing.
Upon selecting a node ...
-2
votes
2
answers
69
views
Treeview table showing duplicates from list of lists [closed]
For a program that takes information from the network I would like to display it in a table to make selections (calculate average, stdev ect.). I created a list of lists and I am trying to populate it ...
0
votes
1
answer
90
views
Objects cut off in flutter treesliver
Im having issues with laying out this treesliver widget. I want the nodes to all end in the same position horizontally but start with an indent based on where they are in the tree.
All the icons ...
0
votes
1
answer
156
views
How can I dynamically show/hide a column in a tree view depending on a field in Odoo version 17
In an Odoo v17 application, in a tree view inside a page, I need to show a column depending on a certain field. There is a transport field whose value can either be 'air' or 'ocean'. If 'air', I need ...
0
votes
0
answers
30
views
Select Media Dialog Tree View Not Working in Sitecore 10.3
I've seen issues like this posted for older Sitecore versions, but none as recent as 10.3.
When invoking the Browse trigger on an Image field in Sitecore CMS, the user gets the Select Media dialog. ...
0
votes
0
answers
38
views
Trying to display employees that have a selected job in a tree view which is in the notebook page of a form view in Odoo 17
I created a custom module called recruit ink that I wanted to put on top of the recruitment module, it's like a recruitment request process to start the actual recruitment. In it I have a Many2one ...
1
vote
1
answer
85
views
I cannot change Node.BackColor on TreeView nodes with TreeViewDrawMode.OwnerDrawText c#
My form has a TreeView control named tv1 which uses TreeViewDrawMode.OwnerDrawText and implements a custom handler. It works as expected with the exception that the nodes which are passed to the ...
1
vote
0
answers
54
views
Children not indenting using Tkinter Treeview
I cant seem to figure out why the children of my tree are not indenting from their parent node and are lined up directly with them instead.
# Tree view initializers
# Tree Cloumns
filterTree = ttk....
0
votes
0
answers
71
views
Create treetable in flutter like treetable in primefaces
I'm trying to create a tree view with the same form as a table to manage categories.
I figured it would be similar to the treetable in primefaces(http://primefaces.org/showcase/ui/data/treetable/...
0
votes
1
answer
72
views
WinForms TreeView code has variable which seems stuck as false, should be changing [closed]
I wanted to copy some example code I found online, but this bit has me puzzled. In the MainForm() method is
treeView.BeforeSelect += (sender, e) => e.Cancel = !_isTreeInitialized;
Task.Delay(10)....
1
vote
1
answer
48
views
Undo drop in nz-zorro tree
I have following code for the tree. HTML:
<nz-tree
[nzTreeTemplate]="nzTreeTemplate"
(nzOnDrop)="onNzOnDrop($event)" [nzData]="nodes" nzDraggable>
</nz-tree&...
0
votes
0
answers
89
views
Python Borderless ttk.Treeview
I have a treeview that I don't want to have borders, I managed to do it with borderwidth=0, however when selecting an element the border reappears, I tried to put borderwidth=0 when selecting or ...
0
votes
0
answers
70
views
how to adjust tkinter treeview rowheight, the content is wrapped when over one row
This is the problem screenshot:
And this is my code:
tree_frame = Frame(self.root)
tree_frame.pack()
self.tree = ttk.Treeview(tree_frame, columns=['1', '2', '3'], show='headings', ...
0
votes
1
answer
61
views
In VB.Net, navigate to Treeview node based on filepath
In my Windows Explorer type app with the obligatory Treeview and Listview, and having the users chosen file path continually updating in a Textbox, is there a way to navigate to different nodes in the ...
0
votes
1
answer
66
views
Jface Tooltip in a Jface TreeViewer disappears too quickly, how can I make it stay visible longer?
I'm working on a Java project using the Eclipse Jface librairies, and my goal is to display a custom tooltip when the user hovers over an item in a Jface TreeViewer. However, I'm encountering an issue ...
1
vote
1
answer
33
views
Problem with Treeview keyboard navigation in VB.net
I am populating a treeview with a list of music. The root node's text is "Library". I want to go to a specific artist by typing the name. If I want to go to "Billy Idol", for ...
0
votes
0
answers
21
views
What is the correct way of handling deeply nested jsons with Rsuite's Tree component?
I have a customized Tree Component of Rsuite component library, where my intention is to add new child for any node. I have been successfull in doing that, but it seems the react component cannot ...
0
votes
1
answer
58
views
Python Tkinter use dataframe resulting from one function def (self,event) in different function within the same class
I have a combobox in one "subscreen" and I am filtering the original dataframe with combo box value but I can't use resulting dataframe to show it in the treeview function or else where. I ...
1
vote
1
answer
78
views
Tkinter - CheckboxTreeview with tooltip for each element
I have a Python tool with CheckboxTreeview widget. Some of the content in the treeview is too long to be displayed. I would like to offer a tooltip to the user if this is the case. I already have ...
1
vote
2
answers
83
views
How to add columns and insert data in Common Lisp ltk treeview
am trying to create a table using a scrolled-treeview, to contain students' performance but i have failed to add the specific columns (name, math-mark, comp-mark) to it.
I have tried the following ...
0
votes
1
answer
78
views
Python tkinter treeview and MySQL queries [closed]
How to populate a treeview with results from many tables?
I've a set of tables: athletes, grades, categories, rel_ath_grad_cath.
athletes
grades
categories
rel_ath_grad_cath
id_ath
id_grad
id_cat
...
0
votes
1
answer
54
views
To Show Striped Row Tags when filtering using a entry in tkinter
I want that my Treeview shows Striped Row Tags when filtering using a entry in tkinter. The code works fine before filter, the filter function also works fine but it does not shows the Striped Row ...
0
votes
0
answers
91
views
'Autofit' Columns Width - Python
I'm trying to make a 'autofit' column width and the code below works really fine, but only if Im not in the tabview that the autofit occurs. Is there anyway to workaround this?
from tkinter import ttk,...
2
votes
1
answer
57
views
Move up in a treeview in tkinter
I have found this function shown below very useful to move down in a treeview, but I ask here if there is a move up function.
def moveDown(self):
curSelection = self.tree.selection() # current row ...
0
votes
1
answer
30
views
Load dynamic data in tree view in ExtJs
I have api response data stucture like below. My data is dynamic and may be change. Structure of data has children. It may has any children in children that times of that is not determined.The last ...
0
votes
2
answers
153
views
How to make the ttk treeview not show extra empty columns?
I am building an app with tkinter and running into some annoying issues.
When I load my data into the ttk treeview, I see that there are always some additional columns on the right side of my treeview ...
0
votes
1
answer
81
views
C# TreeView NodeMouseclick or Click function shows previous selected
Hi I am facing a peculiar issue. I am using a Windows Form (.NET Framework) and have created a TreeView with a sample list from database. I would like to display the details of the selected node by ...
0
votes
1
answer
120
views
Select portion of text in TreeView node
Visual Studio has this very nice "solution explorer", which I assume is some form of TreeView. When you rename files, it selects the file name only and not the extension.
However, treeviews ...
0
votes
0
answers
48
views
Jquery TreeSelect Post Data
https://github.com/dipson88/treeselectjs
Using the package I mentioned above, I created a select structure in the treeview with jquery.
<div id="my-treeselect"></div>
const ...
0
votes
1
answer
43
views
In WPF, how can I add a button to each tree view node that is expandable?
The node may be expanded or collapsed. Need to show the button in both cases.
Something like this:
├─ item1
├─ item2 <button>
│ ├─ item2-1
│ ├─ item2-2
├─ item3 <button>
│ ├─ item3-1
│ ...
2
votes
1
answer
117
views
TreeView: prevent horizontal scrolling when selecting an item
Here is what is happening:
Desired outcome:
When selecting any item no horizontal scrolling should occur (even if the item is too big to show)
Solution must work with virtualization
Horizontal ...