Issue 341: jquery.dynatree.js 1.2.1 and jquery.ui.core.js 1.8.22 drag n drop not working error on page loading "Microsoft JScript runtime error: '$.ui[...].prototype' is null or not an object"
Status:  WontFix
Owner: ----
Closed:  May 2014
Reported by SaqibHa...@gmail.com, Aug 6, 2012
What steps will reproduce the problem?
1.I am using MVC 1.0 and added references for jquery.dynatree.js 1.2.1 and jquery.ui.core.js 1.8.22 on my aspx page.
2. I am using lazy loading technique of dynatree to load data in tree view which is working perfectly fine.
3. Now I am trying to implement drag n drop of dynatree node elements and copied a code from an example but on page load its throwing error "Microsoft JScript runtime error: '$.ui[...].prototype' is null or not an object" on jquery.ui.core.js file on line 272.

Here is the code that i've written for dynatree load:
<script type="text/javascript">
$(function () {
    var postData = { UniqueID: <%= iUniqueID %>};
    var treeObj = $("#marketgrouptree");
    treeObj.dynatree({
        checkbox: false,
        selectMode: 3,
        noLink: false,
        generateIds: true,
        idPrefix: "",
        classNames: {
            nodeIcon: null
        },
        initAjax: {
            url: '/' + <%= "'" + sControllerName + "'" %> + '/GetTopLevelRootNodesAsJson',
            type: 'POST',
            cache: false,
            traditional: true,
            data: postData
        },           
        onLazyRead: function (node) {
            var postData1 = { 
                Key: node.data.key, 
                IsSelected: node.bSelected, 
                IsPartSelected: node.hasSubSel, 
                UniqueID: <%= ruleID %>, 
                HasCheckBox: false ,
                ProfileType: <%= profileType %> 
            };
            node.appendAjax({
                url: '/' + <%= "'" + sControllerName + "'" %> + '/GetChildrenNodesAsJson',
                type: 'POST',
                traditional: true,
                cache: false,
                data: postData1
            });
        },
        onActivate: function(node) {
            CallRespectiveEventMethods(node.data.key);
        },
        onRender: function(node, nodeSpan) {
            $(nodeSpan).find("a.dynatree-title").css("color", "black");
        },
        dnd: {
          onDragStart: function(node) {
            logMsg("tree.onDragStart(%o)", node);
            return true;
          },
          onDragStop: function(node) {
            logMsg("tree.onDragStop(%o)", node);
          },
          autoExpandMS: 1000,
          preventVoidMoves: true, // Prevent dropping nodes 'before self', etc.
          onDragEnter: function(node, sourceNode) {
            logMsg("tree.onDragEnter(%o, %o)", node, sourceNode);
            return true;
          },
          onDragOver: function(node, sourceNode, hitMode) {
            logMsg("tree.onDragOver(%o, %o, %o)", node, sourceNode, hitMode);
            if(node.isDescendantOf(sourceNode)){
              return false;
            }
          },
          onDrop: function(node, sourceNode, hitMode, ui, draggable) {
            logMsg("tree.onDrop(%o, %o, %s)", node, sourceNode, hitMode);
            sourceNode.move(node, hitMode);
          },
          onDragLeave: function(node, sourceNode) {
            logMsg("tree.onDragLeave(%o, %o)", node, sourceNode);
          }
        }
    });        
});

Any help on this plz, how to fix this problem?
May 1, 2014
Project Member #1 moo...@wwwendt.de
As of 2014 Dynatree is feature frozen.
Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that the problem was resolved / the requested featuer is already implemented.
Please open a new issue there otherwise:

https://github.com/mar10/fancytree
Status: WontFix
May 2, 2014
Project Member #2 moo...@wwwendt.de
Cleanup Scrumboard
Labels: Milestone-Release2.0