Questions tagged [fancytree]

Fancytree is a JavaScript dynamic tree view plugin for jQuery with support for persistence, keyboard, checkboxes, tables, drag'n'drop, and lazy loading.

Fancytree is a jQuery plugin that allows to dynamically create html tree view controls using JavaScript. It supports persistence, keyboard, checkboxes, tables (grid), drag'n'drop, and lazy loading.

Main features

  1. Optimized for large dynamic trees (DOM elements are only created when really needed).
  2. Programmable through a rich object oriented interface.
  3. Support for lazy loading and Ajax.
  4. Checkboxes and hierarchical selection.
  5. Supports drag and drop.
  6. Support for persistence.
  7. Keyboard aware.
  8. Initializes from HTML code, JSON, or JavaScript objects.
305 questions
2
votes
1 answer

Fancytree checkboxes

Is there a way to make fancytree checkboxes match the containing form checkboxes? For example, in the example form http://wwwendt.de/tech/fancytree/demo/#sample-form.html, the checkboxes in the checkbox section and the checkboxes in the select…
loz
  • 45
  • 5
2
votes
1 answer

How to deactivate/disable a fancytree node?

I am using fancytree to render a directory, and when the user selects a node in the fancytree, I want to deactivate it. I've been searching through the apis and came across setActive(false) which I thought would do the trick. But it doesn't work. …
dr.jekyllandme
  • 613
  • 2
  • 11
  • 22
2
votes
1 answer

Accessing FancyTree Node Data in JavaScript

I'm using FancyTree for the first time, and I would like define some custom node data, specifically an attribute named "content" in the HTML data used to create the tree:
  • I have an init…
  • Sheldon R.
    • 452
    • 2
    • 7
    • 26
    2
    votes
    1 answer

    Fancytree not visible has class ui-helper-hidden

    I have just started with fancytree 2.6.0 and I am populating it from a web service request. My problem is that all the nodes are present but are made invisible by the ui-helper-hidden class. I have put in a temporary fix with:…
    hairyone
    • 439
    • 1
    • 5
    • 16
    2
    votes
    1 answer

    show fancytree checkboxes only for leaf nodes

    Is it possible to parametrize the JQuery Fancytree (http://plugins.jquery.com/fancytree/) so it only shows checkboxes next to the leaf nodes? EasyUI Tree provides such feature, for example: onlyLeafCheck http://www.jeasyui.com/documentation/tree.php
    lucafik
    • 295
    • 1
    • 6
    • 18
    2
    votes
    1 answer

    Create JSON for Fancytree from a nested set model structure

    I would like to display a data structure with the jquery plugin Fancytree. After a long search in Google, it seems that the best way to store a data structure in a database is the Nested Set Model (described on Stackoverflow here php / Mysql best…
    Pierre
    • 1,044
    • 15
    • 27
    2
    votes
    2 answers

    FancyTree: Node object is incorrect when dragged to root level

    I am trying to define the new parent id for a node after a dragdrop event. This function works fine assuming you drag a node to any level other than root dragDrop: function(node, data) { /** This function MUST be defined to enable…
    Tim
    • 3,091
    • 9
    • 48
    • 64
    2
    votes
    1 answer

    Select only parent node in Fancytree with hierarchical multiselection

    We have used Fancytree to have hierarchical multiselection. Now here is an issue Parent 1 | Parent 2 |-Child 21 |-Child 22 We have the above tree structure. When someone select Parent 2, both Child 21 and Child 22 are selected. Now the issue is if…
    user2686860
    • 107
    • 4
    • 14
    2
    votes
    0 answers

    fancytree filter expanding issue

    There is a issue with fancy tree filter. I donna if its a existing bug or not List item When i try to filter the tree with search character and try to expand the resultant tree nodes. the branches doesn't displayed. But actually its expanded with…
    2
    votes
    2 answers

    Fancytree Lazyload: Make Ajax call each time it expands

    I have a tree folder structure that I am displaying in a webpage using Fancytree and using the lazyLoad option to display the contents of the folder ondemand. This works fine for the first time, but if there are no items under a folder and when…
    user980591
    • 31
    • 1
    • 3
    2
    votes
    2 answers

    jQuery FancyTree, on click expand issue

    I'm doing selection tree with help of FancyTree plugin and I'm trying to implement on click event which would work in way when you click on title of select box, all of his subitems and gets expanded in all levels. To begin with... let me show you…
    dzordz
    • 2,277
    • 13
    • 51
    • 74
    2
    votes
    1 answer

    fancytree problems - "Uncaught Error: Assertion failed: expected array of children"

    I'm trying to migrate from dynatree to fancytree. Even if I try returning the simplest json array from my webmethod I get the error in the subject title: "Uncaught Error: Assertion failed: expected array of children" The json returned as shown in…
    TheMook
    • 1,531
    • 4
    • 20
    • 58
    1
    vote
    1 answer

    Create a JSON tree view in PHP using delimiter

    I am trying to create a file explorer type treeview JSON to be read by FancyTree for a project I'm attempting. The files are stored in a database, with an ID, name, URL, Type and code fields. The mock database looks like this: ID name …
    1
    vote
    1 answer

    Why does lazy-load remove styles of parent rows in fancytree?

    I want to style the rows of my fancytree (which expands using lazy-load, and has a table built in) using the classes 'level1', 'level2', and 'level3' ... extensions: ["table"], table: { nodeColumnIdx: 1 }, …
    gordon613
    • 2,770
    • 12
    • 52
    • 81
    1
    vote
    1 answer

    FancyTree - How put in data-content generate php directory

    I start the programming and FancyTree. And I suck at English ^^. I'm stuck and a little help wouldn't be a bad thing, thanks. I managed to generate a PHP tree structure of my files and folders for FancyTree. So far so good. My problem is that I…