OdinaSpb / jstree

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

"check_node.jstree" Not firing #862

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using the latest featured download:
Date: 2010-07-01 10:51:11 +0300 (четв, 01 юли 2010)
Revision: 191

with plugins: "plugins": ["themes", "json_data", "ui", "checkbox"]

The events "check_node.jstree" and "select_node.jstree" are not firing.
Previous issues mention the problem solved, but it seems to still be present 
from the featured download.

The featured download says v1.0rc2, but still has a header of jsTree 1.0-rc1 in 
the .js too.

Original issue reported on code.google.com by ByronRC...@gmail.com on 11 Jan 2011 at 2:59

GoogleCodeExporter commented 9 years ago
I just downloaded the latest from svn too and the even doesn't fire still.

Original comment by ByronRC...@gmail.com on 11 Jan 2011 at 3:21

GoogleCodeExporter commented 9 years ago
I have the same problem. The "change_state.jstree" fires though, so i bind to 
that instead.

Original comment by gvik...@gmail.com on 27 Jun 2011 at 12:10

GoogleCodeExporter commented 9 years ago
Here's what I did...it works for me.
Hope it works for you.
Cheers

    $(function () {
        $("#divTree").jstree({
            "xml_data": {
                "ajax": {
                    "url": "../data_services/Menu.ashx",
                    //"url": "FieldsOfStudyAdmin.aspx?callback=GetNodesJson",
                    "data": function (n) {
                        return { id: n.attr ? n.attr("id") : 0 };
                    }
                }
            },
            "checkbox": {
                "two_state": true,
                "override_ui": true
            },
            "plugins": ["themes", "xml_data", "crrm", "search", "dnd", "ui", "checkbox", "contextmenu"]
        })
        .bind("check_node.jstree uncheck_node.jstree", function (e, data) {
            checklist(e, data);
        });

Original comment by arcee...@gmail.com on 2 Aug 2011 at 4:45

GoogleCodeExporter commented 9 years ago
Awesome ... that works

Original comment by komil13 on 4 Oct 2012 at 7:42