treeview

C# WinForms - TreeView, Context Menu

Suppose I am using a context menu to add child nodes to a treeview control. (1) I am right-clicking on the node (2)context menu pop up (3)then I click "Add" menu item (4)a dialogBox opens up (5) I input the name in that DialogBox and press OK (6) A new Node is created. How can I get the reference of the current Node when I am clic...

How to redraw Node in TreeView (WinForms)

I need to implement own TreeView with blinked TreeNode. My prototype is: public class BlinkTreeView : TreeView { private int blinkInterval; private bool blinkState; [Category("Behavior"), Browsable(true)] public Icon BlinkIcon { get; set; } [Category("Behavior"), Browsable(true)] p...

html category / sub-category best view

Hi, I have a mysql database populated with categories/subcategories, and I'm on the way to build a php/html/css presentation module to show the hierarchy above mentioned. My objective is to have a simple and clean way to list those categories, widthout getting to confuse to the client (note that there's no "level" limit to the subcateg...

Geewax jQuery checktree code issue

I have a small display issue when using Geewax's jQuery checktree functionality that has baffled me and I am wondering whether you can help me out or point me in the right direction. I have replicated the page locally on my pc and ensured all the necessary images, css file and js files are within the folder. The list of top level collap...

WPF TreeView doesnt display Object Hierarchy

Hello, I am having some serious trouble creating a WPF TreeView with an Object databinding. The application is config file editor. I have defined an Object structure which can be serialized to the correct XML format. The problem I am having is formatting the object instance in the TreeView showing the correct hierarchy. The TreeView w...

Populating Tcl Treeview with Sqlite Data

Hello: I am building a Tcl application that reads off of a Sqlite Db. Currently, I can enter data into the database using the Tcl frontend. Now, I am trying to figure out how to display the data within the Sqlite Db from the Tcl frontend. After a little bit of research, I found that the treeview widget would work well for my needs. ...

WPF/MVVM: TreeView structure from one ViewModel, check state from another?

I have a tree structure to be displayed on a WPF TreeView. The tree structure is shared between multiple parent ViewModels, but the check state will be different for each. Is it possible to make the TreeView use one ViewModel to create the tree nodes, and the CheckBoxes contained therein refer to a different ViewModel/whatever to determ...

Can I put HTML code in label to display in my page?

ASP.NET with C#: I have a web page which is intended to be a help page. Actually I am using a treeview component, and when someone clicks on a node a label on the page will change text by reading it from text file. what I want is to put some images in the help so a .txt file will not be suitable. So I may use a .html file instead. How...

asp.net treeview checkbox selection

Hi I have several parent nodes. Each parent nodes contains a list of child nodes. My showcheckboxes are set to all. My question : On the client side, when I check the parent node - how can I check all the child nodes without doing a post back or using ajax. Regards ...

C#: How to use a custom TreeView object?

If you create a custom TreeView and TreeNode like this: public class CustomTreeNode : TreeNode { private int customInt; public int CustomInt { get { return customInt; } set { customInt= value; } } } public class CustomTreeView : TreeView { pro...

treeview problem

have a treeview control in ASP.NET and C#. Root node (This is fixed) ---Parent Node 1 ( Parent node and child are populated from the database directly. ) ----Child node1 ----Child node2 ---Parent node 2 Now When a value is added to a database it get added in the treeview. I cannot get a way to select the parent and ...

Navigating an ASP.NET TreeView programmatically

What is the best way to determine the next and previous node in a TreeView? The control in System.Web.UI.WebControls doesn't seem to have built-in methods to handle these controls, so do I have to roll my own? ...

ASP.Net TreeView control on MasterPage isn't always populated

I'm working on my first ever ASP.Net project, and I seem to have been thrown in the deep end right away. All of my site files are stored in a database, so I'm using a VirtualPathProvider to access them. That part works well, but then I needed a site map that would dynamically pick up all the files since the user will add/delete files a...

How to Handle Tcl Treeview Selections

Hello: I am using the following procedure to delete a record within a database that is displayed within a treeview widget (z1): set z1 [ttk::treeview .c1.t1 -columns {first last} -show headings] proc Dlt {} { global z1 z11 sqlite3 db test.db db eval { DELETE From t1 Where First_Name = $z11 and Last_Name = $z11 ...

[WPF] Hide items with trigger in treeview

Hi, I've got a treeview, in which I use a HierarchicalDataTemplate. With this, I color my different items (all of the same type). With a click on a checkbox in the Page, I want to hide some of the items (with a certain Property). I've tested many code, but nothing works properly. I'm looking for answers ... Here's a sample of my code...

C# WPF How do I get a TreeViewItem from HierarchicalDataTemplate item?

I have the same problem as a previous question on this forum: previous thread I have a TreeView which uses a HierarchicalDataTemplate to bind its data. I need to get the TreeViewItem from the selected item, which is my own class. I have tried the solution given in the previous thread as well as modified versions of it. Nothing works....

Using customized line images in Asp.Net Treeview control

When I use my own line images for customizing the look and feel of the treeview control, there appears to be a rendering problem in the table row that creates the "I" line. The Lminus, Lplus, R etc line rows all gets rendered without a problem, but for some reason the "I" line gets rendered inside a div tag as follows: <td> <div style="...

Disable or grey out a node in the TreeNode Editor

How do I disable a specific node so the user can not select it. Hiding it for the user is also valid. I tried the Visible property but that hides the entire tree (all nodes). I only want a few of the nodes disabled/hidden. C# using Visual Studio 2005 TreeNode Editor. ...

How to implement Right Click Option In ASP.NET Treeview

Hi all, I have a treeview showing Categories and subcategories. I need to Right Click Option to add subcategories and products for a particular category or subcategory. What I want is suppose I have selected a treenode showing a category or subcategory. When I right click on a treenode it will show a contextmenu having options -- Add s...

Build a treeview in WPF

I am trying to build a three level treeview in WPF. Basically, I have a list of top level items that all have one more child items. Those child item may or may not have themselves chid items. Anyone know of a tutorial available on the net? ...