treeview

Shift+Tab not working in TreeView control

I cannot get backwards navigation using Shift+Tab to work in a TreeView that contains TextBoxs, forward navigation using Tab works fine and jump from TextBox to TextBox inside the TreeView. Anytime Shift+Tab is used when one of the TextBoxes inside the TreeView, then the focus is move to the previous control outside the TreeView, instead...

CF - TreeView look on 6.0 and 6.5 device

I have a treeView with checkboxes and with image list. Im trying to fix its look on both devices 6.0 and 6.5 but i cant get it to work. Either its ok on one device and looks crappy on the other. The checkboxes are so small on 6.5 that i cant even tap them. If i change the font i get huge checkboxes and text on 6.0 device. Also i dont k...

How to expand WPF TreeView on single click of item

Right now you have to double click or click the + icon. Is there any way to make it so if a user clicks anywhere on the node it expands? ...

WPF, TreeView bug, can't select root item after item removed from treeview

I have a very weird bug in a three level deep TreeView. It is intermittent and I can't find how to reproduce it consistently. After programmatically removing, adding then removing some third level items, when I click on the root item it isn't selected. It can still expand/collapse but can't be selected with a mouse click and it doesn't f...

WPF tree data binding model & repository

Hi, I have a well defined tree repository. Where I can rename items, move them up, down, etc. Add new and delete. The data is stored in a table as follows: Index Parent Label Left Right 1 0 root 1 14 2 1 food 2 7 3 2 cake 3 4 4 2 pie ...

Refresh page isnt working in asp.net using treeview

Hi, I am trying to refresh an asp.net page using this command: <meta http-equiv="Refresh" content="10"/> On that page I have 2 treeviews. The refresh works ok when I just open the page, but when I click on one of the treeviews and expand it, the refresh stopps working and the page isnt being refreshed. Any ideas why this can happen?...

HierarchicalDataTemplate Link By Parent

Hello colleagues. I want bind my treeview. There are a lot of samples binding treeview by object, which contains children collection. I've got domain having just Parent pointer. public class Service : BaseDomain { public virtual string Name { get; set; } public virtual string Description { get; set; } publi...

WPF TreeView, get TreeViewItem in PreviewMouseDown event

How can I determine TreeViewItem clicked in PreviewMouseDown event? ...

How do you make one line bold in a TreeView Class in WPF/C#?

How do you make one line bold in a TreeView Class in WPF/C#? I mean, how do you make just one line in a Tree View bold at runtime? ...

WPF TreeView PreviewMouseDown on TreeViewItem

If I handle the PreviewMouseDown event on TreeViewItem, I get events for everything I click on that TreeViewItem include the little +/- box to the left (Windows XP). How can I distinguish that? I tried the following: // We've had a single click on a tree view item // Unfortunately this is the WHOLE tree item, including the +/- // symbo...

How to drag and drop an item from listview to treeview

Please provide some code example. Thanks. ...

Gtk# TreeView set a single cell to have a different renderer?

OK this is probably insane, but I want to be able to have a check box at the very top of every row in my tree view. This box will "disable" or "enable" the ability to use the column. Oh I think it should be mentioned that I'm using a ListStore and am using C#, mono, GTK#. However, ill take anything and try to figure it out. Ill even acc...

How to create a complete generic TreeView like data structure

I want to create a completely generic treeview like structure. some thing like this: public class TreeView<T, K, L> { public T source; public K parent; public List<L> children; } as you can see in this class source, parent and also the children, all have a different generic data type. also i want my tree view to have unlim...

GWT Tree, opening event.

I'm using the tree control in GWT. I have a custom widget that I add as a TreeItem: Tree testTree = new Tree(); testTree.addItem(myWidget); I would like to retrieve myWidget instance on the node opening event. Is it possible ? Does anybody knows which event should I be using ? I tried the openHandler<TreeItem> but what I retrieve is...

Deleting in WPF TreeView jumps to parent

I tried the solution discussed here: http://stackoverflow.com/questions/2030678/wpf-treeview-itemselected-moves-incorrectly-when-deleting-an-item however, I'm still seeing the selection jump to that parent when deleting an item. What am I doing wrong? MainWindow.xaml <Window x:Class="TreeViewDelete.MainWindow" xmlns="http://schema...

How can I vertically align the bullet in a XAML TreeView HierarchicalDataTemplate?

When a node in my TreeView has multiple lines, the TreeView bullet gets vertically centered. How can I top-align the TreeView bullet? <pages:BasePage.Resources> <data:HierarchicalDataTemplate x:Key="OutlineTemplate" ItemsSource="{Binding OutlineDocumentObjects}"> <TextBlock Text="{Binding Line}" TextW...

Defining context menus for WPF ListViews

I've given my WPF ListView a context menu: <TreeView ContextMenuOpening="TreeView_ContextMenuOpening"> <TreeView.ContextMenu> <ContextMenu> <MenuItem Name="NewInputMenuItem" Header="Add" Click="AddInputMenuItem_Click" /> <MenuItem Name="RemoveInputMenuItem" Header="Remove" Click="RemoveInputMenuItem_C...

Modifying an individual TreeViewItem on a databound WPF TreeView without modifying the data source.

I've got a MVVM WPF app with the TreeView databound to a viewmodel class. It is essentially a file explorer. I want to add the ability to "Add a new folder" to the hierarchy. To achieve the desired functionality what I am trying to do is simply switch the Textblock out for an editable TextBox in my datatemplate. This is what my datat...

How to allow users to select their own grouping for a .NET TreeView control

I am using a treeview to display projects, tasks, time entries, and the people who are working on a project. I would like to allow the user to define a custom grouping (ie. Project->Task->Time Entries or Project->Date (of time entry)->Task->TimeEntry). The relevant groups would be Project, Task, Time Entry, and Person, with some meta...

wpf treeview does not show child objects

I have an object with child object(s) and I load it using linq. And I assign it to a treeView's itemssource. treeView.DisplayMemberPath = "Name"; treeView.ItemsSource = tasks; It shows only the parent nodes (task.name), I couldn't figure out how to add children (TaskItems.name). All the examples show HierarchicalData in xaml. I need t...