I have three treeViews that have the same data loaded to them when a form is loaded. I can write the data in three different functions, but that seems like duplicating a lot of work. How can I load each treeView with the same data. So far I have tried the following and it does not work correctly. SecondRowNodes is a set of nodes I have l...
I've got a tree view that can be anywhere from 1 level deep to nearly 6. Each node can be just a few letters or a couple of words totalling up to 20-30 characters.
How do I find the largest width of one of the node's text and add its depth offset to set the width of the treeview so it doesn't go through my borders?
If I need to add mor...
I need to be able to disable some of the checkboxes in a TreeView control of a WinForms application, but there's no such functionality built-in to the standard TreeView control. Of course, I googled for a solution, but found nothing I would be comfortable using. Does anyone have a simple and robust solution?
...
I have the following tables:
1-Categories:
-CategoryID
-CategoryName
-ParentID
2-Items:
-ItemId
-ItemName
-CategoryID
categories can be in a hierarchically view, with many children categories inside each other.
And any the last child category can have items, so just the last category child will show items under it.
The view will be lik...
I have a header table that has a list of web pages in it. Each record has a page URL field which I am looking to parse out into a hierarchy (TreeView). I am not sure of the best way to go about it and I am having a problem getting it to work.
Here's an example of URLS:
/file1.aspx
/file2.aspx
/aFolder/file.aspx
/aFolder/file2.aspx
/b...
I have spend a lot of time trying to figure out how to bind data in my XML file to the TreeView control but I do not know where to start. I even tried going through http://stackoverflow.com/questions/188001/two-way-binding-of-xml-data-to-the-wpf-treeview and Josh Smith's code sample on codeproject, but still can't understand how to begin...
To store an object (say, an instance of a class) in a TreeViewItem, I am currently storing the object in the TreeViewItem's Header and then overriding the ToString method of that class, so that it displays the correct string header; I then cast the object back during an event.
Is this the correct way to achieve this sort of thing, or ...
With regards to a question I posted earlier on (WPF: Correctly storing an object in a TreeViewItem)
Is it possible to have nested HierarchicalDataTemplates in a TreeView?
Take the following example:
Code:
public class Artist
{
private readonly ICollection<Album> _children = new ObservableCollection<Album>();
public...
I'm trying to put a TreeView inside a ComboBox in WPF so that when the combo box is dropped, instead of a flat list the user gets a hierarchical list and whatever node they select becomes the selected value of the ComboBox.
I've searched quite a bit for how to accomplish this but the best I could find was only peices of potential soltui...
I want to create a mix of a treeview and a listview.
I want to have 2 columns.
In the left column i want a recursive treeview and the right column should show some info about the items from the left column.
Let's call the left column Name and the right column Value.
The problem is that when you expand a treeview the indentation level cha...
[revised]
I'm creating a TreePanel in ExtJs that is loading its children from a JSON file. I'm having trouble adding a click action to the nodes. I'm not sure whether it's added in the script creating the tree, or if its added as a property in the JSON, and if so, what the syntax would be. Any help would be appreciated! Please provide an...
Hi all,
It's possible to change the built-in collapse-expand icons of TreeView control (+-) to my own icons?
Thanks in advance!
...
I am trying to implement a platform independent file/directory tree browser. Basically, I am trying to replicate windows explorer's tree control to browse the computer. However, I can't figure out how to find the "Desktop" or "My Computer" folder string (It changes in every pc and os type, version and language). If I can find a way to ge...
I wish to minimize my server-client trips in this application and want to update the TreeView control through the Javascript.
I am guess that the autopostback will have to be set to False.
After the data is entered and the tree is ready to be saved, I will need to access the TreeView control on the server side in order to save it.
Do...
What would be the advisable thing to do to maximize the performance while using TreeView?
By maximize the performance, i mean minimize the number of trips between client to server, ie postbacks.
Would that mean then, that most of my Business logic will sit in the Javascript? What would be the compromise here?
I am talking about ASP.n...
We are using famfamfam png icons. When TreeNodes are assigned one of these images there is an odd blue background colored inside the icons. How can we fix this?
...
Here is my scenario and I would like to ask your opinion on which control is best to use. I am using C#, ASP.net 2.0.
I am required to create a structure that resembles a tree. The user will start with something and then will add nodes to it. Every node is a structure by itself, so a user should be presented with an option to create a n...
I would like to see if there are any AJAX TreeView controls out there, preferably free.
Any ideas/experiences?
Thanks
I am using ASP.net 2.0 (web forms, not MVC), c#
EDITED
Someone voted for this question to be closed. Just wonder why? Is it not programming related? To SO creators, if you guys allow every question to be closed, peopl...
Hi
I have a TreeView with a ContextMenu with Click events. When the click event in the context menu fires, I get the MenuItem as the source of the event, obviously. How can I get which node in the TreeView was the one who triggered the ContextMenu?
...
I posted several times but no one would give me an answer that I can understand in plain English. I am new to JSON/JQuery/Ajax/all other cool libs or tools you may advise me on, so keep that in mind.
I am using c# with asp.net web forms (i also have ajax toolkit, but haven't used it yet).
Here is my scenario:
I need to implement a func...