|
|
stackoverflow.com
- 2010-06-16 16:08:08
- Similar
- Report/Block
In a treeview you can retrieve the level of an item. I am trying to accomplish the same thing with the given input being an object. The XML data I will use for this example would be something like the following <?xml version="1.0" encoding="utf-8" ?> <Testing> <Numbers> <Number val="1"> <Number val="1.1">...
|
|
|
stackoverflow.com
- 2012-04-01 13:04:37
- Similar
- Report/Block
i Guess the title says it all. How to add a child node to a specific node in treeview? Say i have "Item1" in treeview already, How do i add "SubItem1" to "Item1" as it's child node? I know its probably really simple, but i tried lots of stuff, i just cant get it working. Thanks for your help. Using VB2010.
|
|
|
stackoverflow.com
- 2012-07-10 06:34:16
- Similar
- Report/Block
I have a treeview control on * winform applica *tion. Here, what I want to do is: Collapse all other nodes at his level and expend only selected node For example, suppose the scenario: - All Subject + Computer Science + Mathematics Root Node is " All Subjects " and two child nodes Computer Science and Mathematics. These two child no...
|
|
|
|
stackoverflow.com
- 2013-02-27 15:56:24
- Similar
- Report/Block
I'm trying to implement a binary tree with doubles, but I believe my doubles comparison is not correct. When I feed it ints it works properly; however, if I insert doubles with many trailing decimal places, I get a segfault. Here's what my insertion function looks like: int BinaryTree::insert_node_helper(TreeNode *&node, double val, char...
|
|
|
stackoverflow.com
- 2012-06-18 01:07:35
- Similar
- Report/Block
I am new here, and have searched for answers for my problem practically everywhere - to no avail. I hope that somebody here can help. I have a WinForm application, where I use a TreeView to display the folder structure below a selected root folder. The treeview has enabled CheckBoxes. When I check or uncheck a checkbox on a TreeNode, any...
|
|
|
stackoverflow.com
- 2013-03-22 01:04:20
- Similar
- Report/Block
i have a simple asp:treeview and i do this but i only get "on" in alert. how can i get value of node instead of value of checkbox?...
|
|
|
stackoverflow.com
- 2012-04-28 13:16:45
- Similar
- Report/Block
I came to know that by adding TreeView.BeginUpdate will prevent flickering of treeview, but when i added it in to my project all nodes of my treeview disappears, Can any body tell me why it happens, here is the code snippet where i used TreeView.BeginUpdate and TreeView.EndUpdate // Setup nodes. foreach (DataModelObject obj in objects)...
|
|
|
|
stackoverflow.com
- 2012-07-19 00:43:35
- Similar
- Report/Block
I'm running a script that iterates through all the nodes. Initially, I thought the maximum node id would correspond to the total number of nodes in the graph which I retrieved by this Cypher query over REST: START n=node(*) RETURN count(n) However, as I iterate through each number, I see that some nodes at certain ids just don't exist. So...
|
|
|
stackoverflow.com
- 2012-07-11 09:12:35
- Similar
- Report/Block
Im creating a user control, for searching a treeview. I would like to add the usercontrol to the top of the treeview. I can achieve this by treeview.controls.add(mycontrol); However my user control i placed on top of the tree and hidding parts of the tree. Can I somehow change placement of the tree inside the treeview. Or do i need anothe...
|
|
|
stackoverflow.com
- 2012-07-23 06:44:47
- Similar
- Report/Block
I'm using TreeView control. Binding values from database with check box. Nearly three children are there for parent node like Parent1 child1 child2 child3 Parent2 child1 child2 child3 I can able to bind data which is from 3 tables all are working well. I want a facility when a parent node checks all its corresponding child automatic...
|
|
|
stackoverflow.com
- 2012-05-10 06:11:04
- Similar
- Report/Block
In my admin interface I have a listing of subdomains, which follow following logic: node-k1 node-k2 node-k3 node-k4 node-k5 node-k6 node-k7 node-k8 node-k9 node-k10 node-k11 These are stored in mysql. I need to list them in numeric order, however since I lack leading 0s after node-k , it orders them like so: node-k1 node-k10 node-k11 node...
|
|
|
stackoverflow.com
- 2012-06-02 04:03:04
- Similar
- Report/Block
Currently, I have two Stored Procedures in SQL Server that handle retrieving a tree from the database: 1) Retrieves all of the nodes at a specific level when you pass in a level number. 2) Retrieves the children of a specific node when you pass in Level, Left, and Right values. I'm using MVC 3. Ideally, I would like to setup JSTree to mak...
|
|
|
|
stackoverflow.com
- 2013-04-25 02:13:16
- Similar
- Report/Block
By "meaningful", I mean the part of the url by which most people identify the websites (is there a technical term for this?). For example, I'd like the code to return "gm" in all of the following cases: gm.com gm.net gm.info gm.com.uk gm.co.jp gm.jp (these might not be real sites) Plus cases when any of the above has additional subdomain...
|
|
|
stackoverflow.com
- 2010-09-02 14:05:07
- Similar
- Report/Block
Is there any effective way to, without limiting the depth, retrieve a single path in a Adjacency List model based on the node's ID? Like if I've got an ID for a node named "Banana" I could get the following Path: Food > Fruits > Banana It's not a big problem if it's impossible, but I thought about if it could be possible to run joins th...
|
|
|
stackoverflow.com
- 2012-03-11 08:16:50
- Similar
- Report/Block
I have spent a lots of times to create a really easy to use and simple treeview in PHP that retrieve nodes information from MySQL database but nothing useful and none complex solution till now. Please tell me how to do that if you know the right solution. Thanks in advance :)...
|
|
|
stackoverflow.com
- 2013-03-24 14:11:34
- Similar
- Report/Block
I want to do a hierarchical query with a condition on the leaf level. I would like the query to filter all the father - child relationships where the leaf level statisfies the condition : id LIKE '3%' The table t is : ParentId,Id INSERT INTO t VALUES ('VTE', 'VTP'); INSERT INTO t VALUES ('VTP', '202'); INSERT INTO t VALUES ('SER', '606');...
|
|
|
stackoverflow.com
- 2011-06-22 20:48:17
- Similar
- Report/Block
in a c# wpf application, Im loading a treeView from a list, and the user has a button to delete an item and it deletes it from the list no problem, but there is also a button to update the treeView with the list after items have been deleted, I have no problem adding the new items to the treeView but is there a way to clear all the items...
|
|
|
stackoverflow.com
- 2009-06-16 07:41:35
- Similar
- Report/Block
How can I retrieve the item that is selected in a WPF-treeview? I want to do this in XAML, because I want to bind it. You might think that it is SelectedItem but apparently that does not exist is readonly and therefore unusable. This is what I want to do: I want to bind the SelectedItem to a property on my Model. But this gives me the...
|
|
|
|
stackoverflow.com
- 2013-05-23 20:17:41
- Similar
- Report/Block
This question already has an answer here: Java enum reverse look-up best practice 5 answers I'm trying to set up my enum so that it has a list of names and retrieve a particular name given that value. Example: enum {Vanilla, Chocolate, Strawberry}; Given 0, return Vanilla. Given 1, return Chocolate. Given 2, return Strawberry. I haven't...
|
|
|
stackoverflow.com
- 2012-04-15 11:40:26
- Similar
- Report/Block
I'm using WPF TreeView to display statistics to the user. The TreeView is bound to a bunch of objects through MVVM. Sometimes, when TreeNode does contain a lot of items, it takes several seconds to display all of those. During this time the application appears stuck. I want for the TreeView to appear responsive during this delay. If I was...
|
|
|
stackoverflow.com
- 2012-03-29 03:25:06
- Similar
- Report/Block
Some question on java basics, the below function returns an object of Node type class DS{ public Node getNode(int index){ return nodeList.get(index); } public void test1(){ DS ds = new DS(); Node node = ds.getNode(3); // will the change in node variable(of test1()) change the actual Node object in ds? // Is there a...
|
|
|
|
stackoverflow.com
- 2012-04-30 11:44:31
- Similar
- Report/Block
after fixing error related with switch statment,i have following list of error,hen i used debugger(reason was that,problem is going to crashes when i run it) code is again this one #include<iostream> #include<cstring> using namespace std; class data public: long ddata; data(long dd) { ddata=dd; } void display() { cout&...
|
|
|
stackoverflow.com
- 2012-03-21 21:28:43
- Similar
- Report/Block
I created a BST that sets each node to a String value, I was wondering if there is a way to search through the tree but just one value at a time. So say the String in a node was "truck" is there a way to search through the tree and return "t"? This is the code I have for building the tree: public class BinaryTree { public Node root; publi...
|
|
|
stackoverflow.com
- 2013-04-09 15:28:46
- Similar
- Report/Block
This is my first foray into Hierarchical data and am having a bit of a problem. In Silverlight 4, I am trying to get a list of isolated storage folders to display in a TreeView. Nothing displays at all. My Treeview is completely blank. What am I missing? I am getting data and it is correct. Any help would be appreciated. XAML internal cla...
|
|
|
|
stackoverflow.com
- 2012-05-07 06:45:56
- Similar
- Report/Block
I have seen several things on this, but nothing has seemed to work so far. I am parsing an xml via a url using nokogiri on rails 3 ruby 1.9.2. A snippet of the xml looks like this: <NewsLineText> <![CDATA[ Anna Kendrick is ''obsessed'' with 'Game of Thrones' and loves to cook, particularly creme brulee. ]]> </NewsLineTe...
|
|
|
stackoverflow.com
- 2012-05-09 23:01:54
- Similar
- Report/Block
I have an ASP.NET TreeView and need set ShowLine "true" when I define its style. However, the treeview's lines will be cut-off. I tried this tutorial , but it didn't help. .tree font-size: 40px; height: 40px !important; <asp:TreeView ID="TreeView1" runat="server" ShowLines="True" CssClass="tree"> <Nodes> <asp:TreeNode T...
|
|
|
stackoverflow.com
- 2012-02-26 18:48:56
- Similar
- Report/Block
I'm a beginner on C# (I know Java well though) and came to a problem with naming namespaces and classes/interfaces the same. What won't work is this: - Projekt --> (Interface) Node --> (Namespace/Folder) Node -----> (Class): SomethingNode : Node -----> ... Because there is an error that the type "Project.Node" and the Namespac...
|
|
|
|
stackoverflow.com
- 2012-02-27 12:41:24
- Similar
- Report/Block
I have a BST library in wich I store some structs : struct bst_node { char *key; void* data; // this one i want to get it casted to struct model struct bst_node* left; struct bst_node* right; Here is the search function that returns me a bst_node that resides in bst.c: struct bst_node** search(struct bst_no...
|
|
|
stackoverflow.com
- 2013-05-02 02:18:59
- Similar
- Report/Block
I have a tree view in my win form which is having more than 10 nodes, node values are read from DB and it changes dynamically, based on selection for each node I have to show the appropriate details (data will be read from DB for the grid) in the DataGrid on right side of the form, is there any simplest way to acheive this?...
|
|
|
stackoverflow.com
- 2012-04-21 12:43:10
- Similar
- Report/Block
I have a huge binary Tree (each Node has a Pass and Fail Node) and I want to traverse this Tree in order to get all possible Paths using DFS. Since the tree is huge, the time taken to DFS using a single thread is taking very long time. So in order to solve this problem, I am now considering doing parallel DFS. The basic idea is below Star...
|
|
|
|
stackoverflow.com
- 2013-02-15 07:44:29
- Similar
- Report/Block
What is the best way to sort a table like this: CREATE TABLE category( id INT(10), parent_id INT(10), name VARCHAR(50) INSERT INTO category (id, parent_id, name) VALUES (1, 0, 'pizza'), -node 1 (2, 0, 'burger'), -node 2 (3, 0, 'coffee'), -node 3 (4, 1, 'piperoni'), -node 1.1 (5, 1, 'cheese'), -node 1.2 (6, 1, 'vegetariana'), -node 1.3...
|
|
|
cyberforum.ru
- 2012-10-12 13:03:14
- Similar
- Report/Block
Есть один код(работающий код), в котором структуру нужно преобразовать в класс, очень рассчитываю на вас : Код: #include #include #include #include using namespace std; #define BUFFER_LENGTH 81 struct Node int value; Node* next; void stack_push(Node * beg, int key) Node *tec = beg; while (tec->next != NULL) tec = tec->next; Node *...
|
|
|
cyberforum.ru
- 2013-04-20 01:39:28
- Similar
- Report/Block
не могу никак додуматься как скомпилировать, ругается что init() не определен... Код: #include #include struct Node int inf; Node *next; //============================Stack===== ========================= void push(Node *&st,int dat) { // Загрузка числа в стек Node *el = new Node; el->inf = dat; el->next = st; st=el; int pop(Node *&st...
|
|
|
|
cyberforum.ru
- 2013-05-13 11:26:55
- Similar
- Report/Block
Есть бинарное дерево: Код: struct node int n; // value of node struct node *left; // left subtree struct node *right; // right subtree struct node *level; // level pointer (node “to the right”) Поля инициализированы нулями. Нужно написать функцию, которая свяжет все узлы на одном уровне: Код: void linkSameLevel(struct node *t);...
|
|
|
cyberforum.ru
- 2012-09-29 14:45:04
- Similar
- Report/Block
Есть код для построения идеально сбалансированного двоичного дерева. Как его вывести на экран через компонент TreeView Код: type ptr=^node; node=record key:integer; left,right:ptr; n,j,i:integer; root:ptr; x:array[1..100] of integer; procedure TForm2.Button1Click(Sender: TObject); function tree(n:integer):ptr; var newnode:ptr;...
|
|
|
cyberforum.ru
- 2013-06-09 22:21:28
- Similar
- Report/Block
Построить список чисел. 4 числа из списка начиная с i-го номера поместить в новый список. Вывести на экран оба списка. Код: #include #include typedef struct t_node t_node * next; int elem; } node; int printList(node *p) node *l; l = p; do{ printf("%d ", l->elem); l = l->next; }while(l != NULL) return 0; int addElemToList(node *p,...
|
|
|
|
cyberforum.ru
- 2013-04-21 08:57:36
- Similar
- Report/Block
На форме есть элемент treeView (4 узла в коллекции) и tabControl (аналогичные 4 вкладки). Как при нажатию на узел в treeView выбирать идентичную вкладку в tabControl ?...
|
|
|
cyberforum.ru
- 2013-05-13 20:17:38
- Similar
- Report/Block
Никак не могу понять как вставить этот алгоритма в программу, что приписать чтобы заработало. В особенности не понятно node** Tree куда что указывает. Объясните пожалуйста Функция возвращает указатель на вершину, содержащую ключ k. Код: node Poisk_1 (int k, node** Tree) // Поиск вершины с ключом k в дереве (рекурсивный алгоритм). // *Tree...
|
|
|
cyberforum.ru
- 2013-03-19 21:09:02
- Similar
- Report/Block
Пытаюсь сделать свой простейший ActiveX в Qt 5.0 под Windows. Исходный код представлен ниже. При компиляции выдаёт "[debug/qaxserver_res.o] Error 1 Файл не найден". Уверен, ошибка где-то на поверхности, но поиск результатов не даёт. Подскажите, пожалуйста. treeview.pro Код: TEMPLATE = lib QT += axserver widgets CONFIG += dll qaxserver_no_...
|
|
|
|
cyberforum.ru
- 2013-04-24 18:05:26
- Similar
- Report/Block
вот уже с месяц пытаюсь сделать рабочую программу, кодирующую по Хаффману..и все никак.. есть код Код: #include #include #include #include #include using namespace std; class Node public: int a; char c; Node *left, *right; Node(){left=right=NULL;} Node(Node *L, Node *R) { left = L; right = R; a = L->a + R->a; } struct MyCompare...
|