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

[Solved] Drag & Drop error in TreeView

3 Answers 38 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sergey Popov
Top achievements
Rank 1
Sergey Popov asked on 21 Oct 2011, 10:27 PM
Hi
I try write tree editor based on this sample, but with add and drag & drop functionality. All work like a charm, but on drag & drop I have error in telerik.treeview.min.js:
Chrome: Uncaught TypeError: Cannot call method 'find' of undefined
Firefox: t.removeClass("t-last").prev().addClass("t-last") is undefined
Test project attached.
Thankful in advance!

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 24 Oct 2011, 12:14 PM
Hello Sergey,

The problem is caused by the custom version of the jQuery addClass method that you are using. It does not return back the jQuery instance (this) as it should. Note that we do not support such implementations.

Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Sergey Popov
Top achievements
Rank 1
answered on 24 Oct 2011, 01:49 PM
Thanks!
You are right. Sorry for false alarm.
0
ankit
Top achievements
Rank 1
answered on 02 Nov 2011, 07:59 AM
Hi Sergey

Your Demo project looks really good and thanks for sharing. It's really good help for me to built up.
Can you please tell me what did you add/modify to fix the error you discussed in this forum ?

I am getting same error.

Thanks in advance.

Ankit
Tags
TreeView
Asked by
Sergey Popov
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Sergey Popov
Top achievements
Rank 1
ankit
Top achievements
Rank 1
Share this question
or