This is a migrated thread and some comments may be shown as answers.

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

5 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 18 Feb 2009, 03:36 PM
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());
}


5 Answers, 1 is accepted

Sort by
0
Vandara Peou
Top achievements
Rank 1
answered on 18 Feb 2009, 05:40 PM
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?
0
Atanas Korchev
Telerik team
answered on 19 Feb 2009, 08:12 AM
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.
0
ali
Top achievements
Rank 1
answered on 19 Feb 2009, 09:47 AM
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
0
Atanas Korchev
Telerik team
answered on 19 Feb 2009, 09:49 AM
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.
0
Jaffar Sadiq
Top achievements
Rank 1
answered on 13 Jan 2010, 07:45 PM
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
Tags
TreeView
Asked by
ali
Top achievements
Rank 1
Answers by
Vandara Peou
Top achievements
Rank 1
Atanas Korchev
Telerik team
ali
Top achievements
Rank 1
Jaffar Sadiq
Top achievements
Rank 1
Share this question
or