treeview

ASP.NET 2.0 TreeView - OnSelectedNodeChanged does not fire in an User Control

I have a small User Control defined as: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CompanyTree.ascx.cs" Inherits="RivWorks.Web.UserControls.CompanyTree" %> <div class="PrettyTree"> <asp:TreeView runat="server" ID="companyTree" OnSelectedNodeChanged="SelectedNodeChanged" ...

Changing the selected item colour in a gtk treeview using python

I have a dialog which contains a pygtk.treeview for listing tasks by priority. Each row has the background colour set based on that priority, so for example the highest priority has a light red background. The row selection color is not so easy to change. I can set it using treeview.modify_base(gtk.STATE_SELECTED, "#C4C4C4"), but no col...

Expand WPF tree view items via data binding to IsExpanded property

I populate a WPF tree view using data binding. Tree view items are not expanded by default. The items in the collection the tree view binds to implement an IsExpanded property. A tree view item binds its IsExpanded property to the IsExpanded property of an item in the collection. In an attempt to make a certain tree view item visible I...

jquery heirarchial accordion tree

Hiii, I need suggestion regarding how can i make accordion tree heirarchial. there are many plugins available but they are not according to my requirement. My requirement is, suppose if im clicking on my child node than that should become my parent node for rest of its child element and if i'm again clicking on it den it should display...

how to get text of item checked in dhtmlx using`getAllChecked()`

Hi, I am using dhtmlx to populate mysql data in treeview in php. Everything was fine, except, when I use getAllChecked() to get all the items checked as array, it shows identificators instead of text of the nodes. Is anyone of you have used dhtmlx, can you please help me out in getting the text of node instead of id please? ...

Is it possible to remember a treeview position if its nodes populate on demand?

Using ASP.net here, I have a treeview whose nodes are populateondemand = true, is it possible to re-open/re-navigate to the node you click on after a postback/navigation away from that page? ...

populate a treenode from a treenode

I built a treenode to be populated from my network drives, from this treeview I would like to populate another treeview to show the files when the first one is selected. For example, if the user were to click on the c:\TestFolder then the second treeview would show the TestFolder, all sub folders and files. Below is my code, thanks. Imp...

How to clear/reload/refresh JQuery Async Treeview?

I've implemented the JQuery Async Treeview (in APS.NET MVC2) and it works fine, but the problem is when the user adds new nodes to a tree (via another interface), there is no way to reload the tree and reflect the new tree structure. The only way to see the changes in the tree is to shut down the browser (IE8). Trying .empty() on the t...

C# linq-to-xml, Getting a list with nodes?

Hi! This is the test xml that i am using: <categories> <category id="1" name="Test1"> <category id="2" name="Test2"> <misc id="1"></misc> </category> </category> <category id="3" name="Test3"> <misc id="2"></misc> </category> Now i want to bind that to an ASPX treeview, i want only the elements that have...

ASP.NET Treeview search and select

Hi, I have a databound treeview on an aspx page, that which will potentially contain alot of nodes. I was hoping to allow the user to search for specific nodes (by their text value) on the client side as to avoid posting back for each search. Ideally I would like the user to enter text into a textbox and when they click on a search butt...

combobox treeview in php & mysql

Does anyone know how to display MySQL db hierarchical data (Nested Set Model (http://www.phpro.org/tutorials/Managing-Hierarchical-Data-with-PHP-and-MySQL.html)) in a combo box as shown here under the "Category:" comboxbox field:http://dir.globetourism.biz/submit.php Thanks ...

Dynamically Styling TreeViewItem? (Silverlight)

Hey all, I've noticed that if I have a style setup for a treeview, and a different one setup for the treeviewitem, it gets overridden once I put the item in the tree. Does anyone have suggestions for how to control the style of each treeviewitem individually while mantaining a default style that is applied to the whole treeview? Basicall...

Recursive Treeviews

Hi, I have a treeview being populated from sql on a c# winform pulling the root node and its child ids using the following methods. From there i have a label in the TVCTOptions_AfterSelect statement of the treeview to capture that ID of the selected node. The problem i have is it only pulls root ids and not the childs id. Any ideas wha...

How do I cache TreeViewItems to re-expand after a re-binding?

I have a TreeView that is bound to a collection class that I have no control over. Inside this class is a collection of objects, which each have their own collection of items. This hierarchy is fixed at 3 deep. The children of the TreeView are contained in an ObservableCollection and are updated in the TreeView accordingly. The collectio...

SelectedNode in TreeView is lost when Visible=false

it seems like the treeview control in asp.net will clear the SelectedNode property, when Visible is set to false. i want to create a dropdown with a treeview inside it, and every time i collapse the dropdown, the value is cleared! is there a workaround/fix for that? i tried abusing the ViewState, but then i have problems with assigning...

KeyBinding on a TreeViewItem

I have a typical treeview and a viewmodel. The viewmodel has an observable collection of other viewmodels that serves as a data source for the tree. public class TreeViewVM { public ObservableCollection<ItemVM> Items { get; private set; } public ItemVM SelectedItem { get; set; } } and the ItemVM : public class ItemVM { ...

how to fire Validation on a property of a calss used by a HierarchicalDatatemplate instead of firing it on my viewModel properties?

Hello Everyone. the problem i have is somewhat difficult to explain i will try my best: i am using a custom control called "TasklItem" (derived from Panel). this control renders itself hierarchically in a treeview using following HierarchicalDataTemplate: <Grid Name="TaskItemTempl...

Styling <tr> in Treeview

I'm working on an ASP.net 2.0 application. The master stylesheet contains: BODY TR { background-color: #e5e4e4; } In a page I'm creating for the site I have an: <asp:TreeView> Each line in the TreeView renders as a <table>. Each table contains a <tr> which picks up on the background colour in the stylesheet. I don't want th...

How to set a Trigger on a child to a parent property?

I have a TreeView with a ToggleButton ( ExpanderButton ). The togglebutton has a two images ( one for expanded and one when not ). However when I select a TreeViewItem I highligh it with a different color and I'd like to change the color of the images as well ( I have the same ones in the other color ). Problem is I don't know how to se...

Suggestions for building a treeview control in Android

Suggestions for building a treeview control in Android ...