OdinaSpb / jstree

Automatically exported from code.google.com/p/jstree
0 stars 0 forks source link

JsTree - load children(first level) on click of parent tree (+) #1022

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.$("#demo1").jstree({       
        "plugins" : [      "themes","json_data", "ui"       ],
         "json_data" : {
            "data" : [
                        {"table_name": "table1",
                        "data":{"title": "table1"},"state": "closed"},
                        {"table_name": "table_hello",
                        "data": {"title": "table_hello"},"state": "closed"}
                     ],
            "ajax" : { url : "/getchildren?parent="+id
2.
3.

What is the expected output? What do you see instead?
I need to get the child nodes attached to the parent node, on click.
Instead I am not able to open the parent node.

What version of the product are you using? On what browser?
jstree 1.0

Please provide any additional information below.

Original issue reported on code.google.com by krishna...@gmail.com on 16 Jun 2014 at 5:55