Questions tagged [jqtree]

JqTree is a jQuery tree widget

JqTree is a jQuery tree widget.

Features:

  • Create a tree from JSON data

  • Drag and drop

  • Works on ie7+, firefox 3.6+, chrome and safari

  • Written in Coffeescript

76 questions
5
votes
3 answers

Updating jqTree after initialization?

I'm new with jqTree and I'd like to reload the tree after ajax call. I have something like this : $("select").change(function(){ var url = 'lab.json'; if ($(this).val() === 'RAD') { url = 'rad.json'; } $.get( url, …
BenoitD
  • 525
  • 1
  • 6
  • 16
4
votes
1 answer

jqtree: multiple search and hightlight all search results in the tree?

Has someone any idea if it's possible and how to search for all occurences of a keyword in the tree, expand and highlight all the results and their path to the root element. I've found already an example for a single search here:…
3
votes
1 answer

Bootstrap Is Adding Conflicting Styles To JQTree

This first picture is what my jqTree looks like when the page is first loaded: When I close then re-expand the "USA" node this is what it re-expands to: Upon inspecting it in Google Chrome debugger: You can see that for some reason the overflow:…
Ring
  • 2,249
  • 5
  • 27
  • 40
3
votes
1 answer

How to get jQtree to read the initial tree from the HTML's source

until now I've been using jQuery TreeView for my website's navigation menus, but now since the main navigation menu (on the left pane) has grown too large (Vim reports it takes 40869 bytes out of a typical page's 67054 bytes) I would like to make it…
Shlomi Fish
  • 4,380
  • 3
  • 23
  • 27
2
votes
0 answers

how to convert a path enumeration tree table to Array in PHP?

I created a tree table by path enumeration structure in mysql database. Here is my table: +----+----------+-----------+-----------+ | id | name | path | id_parent | +----+----------+-----------+-----------+ | 1 | node1 | /1/ | -1…
saleh mosleh
  • 135
  • 1
  • 14
2
votes
2 answers

Selector to get parent of text to change its color

I'm using JQTree to created nested tree views of our test data. I want to highlight failures in red text. I'm using var failText = $("span:contains('FAIL')"); and failText.css({'color': 'red'}); to do that where the actual fail occurs. However, I…
delliottg
  • 3,950
  • 3
  • 38
  • 52
2
votes
2 answers

Display full width background for selected items in jqTree

OK, I have a simple nested list, styled with jqTree. Playing with the inspector, I noticed the appended class, responsible for highlighting elements is jqtree-selected. And the whole thing works quite ok. Except for one thing: I want the selection…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
2
votes
1 answer

Drag and drop between two trees with jqTree

By default, as I know, jqTree doesn't support interaction between trees. How can I add drag-and-droppin' ability with a small effort?
2
votes
2 answers

Dynamically Assigning HTML/CSS Ids to Nodes in jqTree

In jqTree, putting the following code in a JavaScript block at the top of an HTML file will generate a small treeview. var data = [ { label: 'node1', children: [ { label: 'child1' }, { label: 'child2' } ] }, { label:…
caps
  • 1,225
  • 14
  • 24
2
votes
2 answers

jQuery treeTable Plugin throwing error "TypeError: $(...).treetable is not a function"

Scenario: Consider the following in code html file: jQuery treetable
Amol M Kulkarni
  • 21,143
  • 34
  • 120
  • 164
2
votes
1 answer

Jqtree calling data from server without url

I am starting with jqtree and I need to load data from server, without url (I have seen examples of loading ajax data from url, and it's not what I need) and I haven't found anything about that anywhere. Does someone know how can I set a jqtree…
maugusto
  • 74
  • 6
2
votes
1 answer

Active Directory OU Tree to jqTree

I need to create a valid jqTree JSON structure from Active Directory OUs. I'm testing with a recursive method (InfoNode) for this, but I can not get it. The resulting json goes into the string json. The first node to process is the DirectoryEntry…
1
vote
1 answer

How to integrate JqTree in Rails 6 with webpacker, tree is not a function

I am really wanting to know how to integrate jqTree as a webpacker webpack in my Rails 6 application UPDATE:- Using yarn add jqtree seems to have magically cleared up most of my issues however I am currently facing tree is not a function error I am…
jamesc
  • 12,423
  • 15
  • 74
  • 113
1
vote
0 answers

Fire event on node drop with jqTree

This fiddle attempts to access the modified tree data and display it to console when a node is moved and/or dropped : The tree in question is based on jqTree : https://mbraak.github.io/jqTree/ http://jsfiddle.net/adrianfiddleuser/ywo3z1rb/3/ But…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
1
vote
1 answer

JQ Tree Show Only Selected Nodes With Their Parent On Button Click

I have to show only selected nodes and parents, and hide rest nodes when a button is clicked. Only nothing happens when I click the button. The jsfiddle http://jsfiddle.net/375emow0/ The code with commenting start on button click …
1
2 3 4 5 6