'this._backupExpandedNodes[...]' is null or not an object

6 posts, 0 answers
  1. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 18 Feb 2009 Link to this post

    Hi,

    All my nodes are set to serverside callback. I get the following error intermittently when I drop a node onto another:  'this._backupExpandedNodes[...]' is null or not an object

    function insertOver(destinationNode, sourceNode)
    {
        var allnodes = destinationNode.get_nodes();
        allnodes.add(sourceNode);
     }

    I've copied the drag and drop functionality from the samples. But added this function so that I can sort the nodes afterwards.

    it's the allnodes.add(sourceNode); line which causes the error. Stack trace:

    Telerik.Web.UI.ControlItemCollection.prototype={add:function(_ef){
    var _f0=this._array.length;
    this.insert(_f0,_ef);
    },insert:function(_f1,_f2){
    var _f3=_f2.get_parent();
    var _f4=this._parent._getControl();
    if(_f3){
    _f3._getChildren().remove(_f2);
    }
     calls:
    Telerik.Web.UI.ControlItemCollection.prototype={add:function(_ef){
    var _f0=this._array.length;
    this.insert(_f0,_ef);
    },insert:function(_f1,_f2){
    var _f3=_f2.get_parent();
    var _f4=this._parent._getControl();
    if(_f3){
    _f3._getChildren().remove(_f2);
    }
    if(_f4){
    _f4._childInserting(_f1,_f2,this._parent);
    }
    Array.insert(this._array,_f1,_f2);
    _f2.set_parent(this._parent);
    if(_f4){
    _f4._childInserted(_f1,_f2,this._parent);
    _f4._logInserted(_f2);
    }
    calls:
    childInserted:function(_1f8,node,_1fa){
    if(!_1fa._childControlsCreated){
    return;
    }
    this._restoreClientState();
    if(this._threeState){
    node._updateParentCheckState(this);
    }
    calls:
    backupClientState:function(){
    this._backupCollapsedNodes=this._getCollapsedNodes();
    this._backupExpandedNodes=this._getExpandedNodes();
    this._backupSelectedNodes=this.get_selectedNodes();
    this._backupCheckedNodes=this.get_checkedNodes();
    },_restoreClientState:function(){
    this._clientState.selectedNodes=[];
    for(var i=0;i<this._backupSelectedNodes.length;i++){
    Array.add(this._clientState.selectedNodes,this._backupSelectedNodes[i]._getHierarchicalIndex());
    }
    this._clientState.collapsedNodes=[];
    for(var i=0;i<this._backupCollapsedNodes.length;i++){
    Array.add(this._clientState.collapsedNodes,this._backupCollapsedNodes[i]._getHierarchicalIndex());
    }
    this._clientState.expandedNodes=[];
    for(var i=0;i<this._backupExpandedNodes.length;i++){
    Array.add(this._clientState.expandedNodes,this._backupExpandedNodes[i]._getHierarchicalIndex());
    }
    this._clientState.checkedNodes=[];
    for(var i=0;i<this._backupCheckedNodes.length;i++){
    Array.add(this._clientState.checkedNodes,this._backupCheckedNodes[i]._getHierarchicalIndex());
    }


  2. Vandara Peou
    Vandara Peou avatar
    20 posts
    Member since:
    Apr 2006

    Posted 18 Feb 2009 Link to this post

    I've actually run into a simlilair problem. I use client side scripts to handle moving of the nodes. Every once in a while i would get the same error when draggin between nodes. It only happens sometimes but dispite the error everything seems to move correctly. Any thoughts on this?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Feb 2009 Link to this post

    Hi,

    We fixed broblem causing the same error message in our SP2 release. Which version are you using?

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 19 Feb 2009 Link to this post

    Hi,

    In Add or Remove Programs I have RadControls for ASPNET AJAX Q3 2008.
    the Telerik.Web.UI.dll version is 2008.3.1125.20
  6. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 19 Feb 2009 Link to this post

    Hello ali,

    The current official version is 2008.3.1314 which is Q3 2008 SP2. Please try upgrading.

    Best wishes,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Jaffar Sadiq
    Jaffar Sadiq avatar
    1 posts
    Member since:
    Jun 2009

    Posted 13 Jan 2010 Link to this post

    We are using version 2008.3.1105.20 and are getting the same error message. We cannot upgrade as it would require lots of testing. Could you send us a code fix for this?  Please reply urgently
    Thanks

    Jaffar
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017