A plugin for the popular jQuery plugin jsTree, Search allows both client side highlighting of active nodes and AJAX communication with a server side script to expand the current tree.
Questions tagged [jstree-search]
39 questions
15
votes
2 answers
jstree showing all nodes if search string didn't match any node
I'm rendering jstree with following config
$('#deliverables').jstree({
'core': {
'data': data
},
'search': {
'case_insensitive': true,
'show_only_matches' : true
},
'plugins':…

Murali Mopuru
- 6,086
- 5
- 33
- 51
7
votes
1 answer
jsTree AJAX search with some node childs?
I try to implement ajax search in jsTree, but only inside one of root node.
I read docs, and found some info about:
$.jstree.defaults.search.ajax
A str (which is the search string) parameter will be added with the request, an optional inside…

sharp
- 857
- 1
- 9
- 21
7
votes
1 answer
jstree : Uncaught TypeError: Cannot read property 'children' of undefined
In my server I am returning a JSON object in the format of jsTree :
{"id":"value", "text":"value", "parent":"value"}
I am getting it in my view through an Ajax call. Console.log shows me the details but jsTree gives me the error:
Uncaught…

user3542482
- 249
- 4
- 10
5
votes
1 answer
jsTree lazy search
Is it possible to have a "lazy search" with JsTree where the search results can be a path that include nodes not currently in the tree? I have a large tree that I am node loading lazily and would like to be able to handle searches that include nodes…

sutee
- 12,568
- 13
- 49
- 61
4
votes
2 answers
Create Functionality in Context Menu of jsTree not working
New nodes won't be created when 'types' plugin is defined.
Please look at this fiddle.
I'm unable to create new Nodes in the tree.
http://jsfiddle.net/z8L5r9w3/1/
$('#jstree').jstree({
"core" : {
"check_callback" : true,
"data" : [
{…

G.Brown
- 369
- 3
- 16
4
votes
2 answers
JSTree font awesome check Box
I have a tree structure using jsTree, like this:
-
Top 1
-
Sub 1
- A
- B …
-
Sub 1

Pavan
- 131
- 13
4
votes
0 answers
jstree with ajax search and massload plugin
I'm trying to get the massload plugin to work with my jstree configuration. The nodes are built as Country->City->Site->Product->License. When the tree is loaded initially, only the top level nodes are loaded (in my case Countries). When a user…

Hintham
- 1,078
- 10
- 29
3
votes
0 answers
jsTree search query for child nodes only
I am using jsTree with the search plugin. Now I want the search to only match child nodes and not parents nodes.
This is what I've implemented:
"search": {
case_insensitive: true,
show_only_matches: true,
search_leaves_only:…

Jolan
- 681
- 12
- 39
3
votes
2 answers
how to deselect all nodes in JSTree
I am building JS tree dynamically.
I am deleting node and when it happens,it is selecting to the above node and "select_node" event is getting triggered.
I want to override the default functionality
$('#treeViewContainer').css("height", 100px);
…

AMDI
- 895
- 2
- 17
- 40
3
votes
3 answers
show_only_matches not working for jstree's search plugin
I have configured my jstree as follows:
var $proceduresTree = $('#procedures-tree');
$proceduresTree.jstree({
'core' : {
'data' : data,
"themes":{
"icons":false
}
},
"search": {
…

Alexander Suraphel
- 10,103
- 10
- 55
- 90
3
votes
1 answer
JS Tree - Select parent node when all the child nodes are selected
I am using JSTree. When you check a node, I want to see if its all sibling nodes are also selected, if yes, I want to select the parent node and deselect all the child nodes. How can I achieve this with JsTree?

SharpCoder
- 18,279
- 43
- 153
- 249
3
votes
3 answers
how to change jstree search into ajax search
I'm trying to turn my jstree search into ajax search with the following configuration, my problem is, even though it sends "str" to the url and I receive the data in a json ["#id"] like, but jstree still does its normal search
//…
user5182158
3
votes
2 answers
Jstree: I can't reset all the checkboxes to uncheck by default when I reload my tree
I tried to use this:
$("#jstree_demo_div").jstree("destroy").empty();
It removes the checked nodes and reload the tree but does not apply the new changes. Any suggestion will be greatly appreciated.
Globally I need to reset my tree with…

user3542482
- 249
- 4
- 10
3
votes
3 answers
Jstree Leaf Node is icon is coming as expandable. I want minus(-) sign for leaf nodes
I have set theme as
"themes": {
"theme": "proton"
},
My js tree Image with leaf node sign as (+) which is non expandable.see highlighted

S2K
- 1,185
- 3
- 27
- 55
3
votes
1 answer
jsTree asynchronous search - trigger load new nodes
I have a nicely running implementation of jsTree running on a project of mine. The JSON data is provided by PHP/Ajax. I've run into some trouble while using the search plugin.
jsTree's search plugin documentation says:
so in your response you must…

scrowler
- 24,273
- 9
- 60
- 92