Hi. I wonder if anyone can help.
We have an issue with v 2008.2.826.20 onwards of RadGrid (the issue does not exist with RadGrid.net2 v5.1.2.0).
We have a dashboard page containing web parts, and have implemented drag and drop to allow the web parts to be moved around. The trouble is as soon as we put a rad grid into one of these web parts we get a javascript error thrown in the Telerik javascript as soon as you try to drag any web part (not just the one with the grid). Remove the web part with the rad grid and all works fine. Also, the problem only exists if the grid has data in it - if there is no data in the grid everything works fine.
The error is appearing in the following Telerik script:
Telerik.Web.UI.Grid.IsChildOf=function(_3c,_3d){
while(_3c.parentNode){
if(_3c.parentNode==_3d){
return true;
}
_3c=_3c.parentNode;
}
return false;
};
The problem is that _3c is null, so it crashes as it is trying to access _3c.parentNode.
I guess the simple fix from Telerik would be to check if _3c is null, but I wonder if there is either an underlying problem with this caused by our drag and drop javascript code, or if this is a Telerik problem. Unfortunately it would be very difficult for me to supply a working example of our code so i'm hopeful that someone can make an educated guess!
Any advice appreciated.....
We have an issue with v 2008.2.826.20 onwards of RadGrid (the issue does not exist with RadGrid.net2 v5.1.2.0).
We have a dashboard page containing web parts, and have implemented drag and drop to allow the web parts to be moved around. The trouble is as soon as we put a rad grid into one of these web parts we get a javascript error thrown in the Telerik javascript as soon as you try to drag any web part (not just the one with the grid). Remove the web part with the rad grid and all works fine. Also, the problem only exists if the grid has data in it - if there is no data in the grid everything works fine.
The error is appearing in the following Telerik script:
Telerik.Web.UI.Grid.IsChildOf=function(_3c,_3d){
while(_3c.parentNode){
if(_3c.parentNode==_3d){
return true;
}
_3c=_3c.parentNode;
}
return false;
};
The problem is that _3c is null, so it crashes as it is trying to access _3c.parentNode.
I guess the simple fix from Telerik would be to check if _3c is null, but I wonder if there is either an underlying problem with this caused by our drag and drop javascript code, or if this is a Telerik problem. Unfortunately it would be very difficult for me to supply a working example of our code so i'm hopeful that someone can make an educated guess!
Any advice appreciated.....