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

[Solved] TreeView Drag and Drop issue

3 Answers 190 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anshul
Top achievements
Rank 1
Anshul asked on 29 May 2008, 03:34 PM
Hi,

I have three controls on a aspx page. A RadGrid(I'll Call it Grid A) that acts like a reorderlist. Using drag and drop items can be moved around inside of the grid.

A Radtreeview, from which nodes can be dragged and dropped onto another Radgrid(different radgrid than the one mentioned above,Call it Grid B). 

Everything works as expected when I drag and drop from the treeview to Grid B. Then if I go to Grid A and try to reorder rows using drag and drop that works fine too. But after that if I come back to the treeview and try to drap node to Grid B again I get a javascript exception:"Microsoft JScript runtime error: Object doesn't support this property or method"
the debugger is stuck on the line of code (in a dynamically generated script)

e.preventDefault(); 

After further looking into it this script gets called from the following function:

Function.createDelegate = function Function$createDelegate(instance, method) {  
    /// <summary locid="M:J#Function.createDelegate" /> 
    /// <param name="instance" mayBeNull="true"></param> 
    /// <param name="method" type="Function"></param> 
    /// <returns type="Function"></returns> 
    var e = Function._validateParams(arguments, [  
        {name: "instance", mayBeNull: true},  
        {name: "method", type: Function}  
    ]);  
    if (e) throw e;  
 
    // The method still makes some sense with a null instance, in the same way that createCallback still  
    // makes sense with a null context.  
 
    return function() {  
        return method.apply(instance, arguments);  
    }  

and in this case the value of 'instance' is null.

I am using the code from the online demos  for the Radtreeview drag and drop and also for the RadGrid drag and drop.

Please let me know if you need more details:

any help would be appreciated.

thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 02 Jun 2008, 11:38 AM
Hello Anshul,

We had a similar issue recently which we managed to fix. Find attached our latest internal build; download it and give it a try.

Also, do you reproduce the problem in our online examples?

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anshul
Top achievements
Rank 1
answered on 03 Jun 2008, 01:44 PM
Hi Veskoni,

Thanks for your response. I used the dlls(v2008.1.530.20) and it worked like a charm.

I have noticed this issue in the online examples(RadGrid Drag and Drop). But  it happens very infrequently. There is no particular pattern to when it happens in the online example. I tried to reproduce it today but I couldn't.

I still have the evaluation version of the Rad controls for ASP.net Ajax. We are definitely going to go ahead and buy the controls(version that ships with the source code). When do you think the internal built  v2008.1.530.20 would be available with the source code.

thanks again for your help.
0
Atanas Korchev
Telerik team
answered on 05 Jun 2008, 01:50 PM
Hello Anshul,

This hotfix would be officially released in our SP2 release. The same is expected in two weeks time (18/19 of June).

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Anshul
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Anshul
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or