-1

I use Jquery dynatree and I need call my function from dynatree event onSelect. Example:

 <script>
    function fillAdditionCheckboxes(node){
             ....
    }

    $(".dynatree-wrapper", this.el).dynatree({
        narrowSearchProgress : false,
        clickFolderMode: 1,
        checkbox: false,
        children: root.children,
        selectMode:1,
        onSelect:function (flag, node) {
            //how I can call my function ????
            fillAdditionCheckboxes(node);
        }
    });
 </script>
Lukasz Koziara
  • 4,274
  • 5
  • 32
  • 43
Aleksandr Filichkin
  • 660
  • 2
  • 8
  • 22

1 Answers1

0

First off, why are you using "narrowSearchProgress : false"? That's not a valid parameter. See the documentation.

What's your problem? Is the dynatree getting created? Are you able to select items?

<script>
  function fillAdditionCheckboxes(node){
         ....
  }

  $(".dynatree-wrapper", this.el).dynatree({
      narrowSearchProgress : false,
      clickFolderMode: 1,
      checkbox: false,
      children: root.children,
      selectMode:1,
      onSelect:function (flag, node) {
          fillAdditionCheckboxes(node);
      }
  });
</script>
basher
  • 2,381
  • 1
  • 23
  • 34