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

bug: onNodeDropping() event

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
N
Top achievements
Rank 1
N asked on 29 Apr 2008, 07:48 AM
I've discovered a bug in the OnClientNodeDropping event of the current version of radTreeview for ASP.NET AJAX.

If you have a standard JavaScript confirm() statement inside the event handler, then on exiting the event handler, the error "htmlfile: Invalid argument" is triggered pointing to a Telerik generated Javascript file:

this._clearDrag();  
},_clearDrag:function(){  
if(this._dropClue){  
document.body.removeChild(this._dropClue);  
this._dropClue=null;  
}  
document.body.removeChild(this._draggingClue); 

...where this._draggingClue is null in the last line.

You can re-create the bug by modifying the "drag and drop" online sample located at:

/radcontrols_prometheus/TreeView/Examples/Functionality/DragAndDropNodes/DefaultVB.aspx:
function onNodeDropping(sender, args)  
{             
    var dest = args.get_destNode();  
    if (dest)  
    {   
        var clientSide = document.getElementById('ChbClientSide').checked;  
 
        if(clientSide)  
        {  
            clientSideEdit(sender, args);  
            if (confirm("my message")){  
                  
            }                              
            args.set_cancel(true);  
            return;  
        }  
      
        dropOnTree(args);  
    }  
    else  
    {   
        dropOnHtmlElement(args);  
    }  

Is there a way around this error?

Regards,
Nuri




1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 29 Apr 2008, 12:08 PM
Hi Nuri,

Thank you for bringing this issue to our attention. We confirmed that this is a bug in the current version when alert/confirm is used in the OnClientNodeDropping event handler. I notified our developers of the problem and we will contact you as soon as we have certain results.

I hope this is not a major show-stopper for you.


Kind regards,
Helen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
N
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or