Not able to move widgets above/below another widgets within same widgetzone

Shweta S asked on July 28, 2017 20:36

The widgets have + icon to drag and drop but they are not working. It is giving me following error on the console.

Uncaught TypeError: Cannot read property 'UI' of undefined
    at RegisterCMSDragDropBehavior (GetResource.ashx?scriptfile=~%2fCMSScripts%2fDragAndDrop%2fDragAndDropBehavior.js:1)
    at CMSExtendedControls.DragAndDropBehavior (GetResource.ashx?scriptfile=~%2fCMSScripts%2fDragAndDrop%2fDragAndDropBehavior.js:1)
    at H.w.create (ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2)
    at Array.<anonymous> (Volunteer.aspx?viewmode=3&showpanel=1&cmscontentchanged=false&lang=en-US&langobjectlifetime=request:1721)
    at ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2
    at Function.H.w.raiseEvent (ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2)
    at H.b._Application._raiseInit (ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2)
    at H.b._Application._doInitialize (ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2)
    at ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2
    at ScriptResource.axd?d=x6wALODbMJK5e0eRC_p1LZXm1OurRLHeqbETSYcNwCDR8Up5o0Rlwx9ZC_UgQ86Jk2xmN_NhKmnhK-…:2

I removed all css and javascript files from my master file to make sure it is not causing the issue.

I only have below files in my master.aspx file

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" />      

There are similar questions asked before but the solutions are either not application to me or they didnt work.

Recent Answers


Juraj Ondrus answered on July 31, 2017 10:09

Hi,
What version of Kentico are you using?
I would try removing all the scripts and/or make the page's page template not to inherit any content from master/parent templates and/or create a completely blank page template with no inheritance to see if it will help or not.
Also, do not forget to clear the browser cache just in case.

0 votesVote for this answer Mark as a Correct answer

Shweta S answered on August 1, 2017 21:12

Hi Juraj,

I am using Kentico 10 version but I tried on another site which is on Kentico 9 and it works on that site (not sure if that makes any difference). I created a new template which does not inherit any master file. The template has no extra code, just the jquery and jquery ui plugin.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 2, 2017 11:56

You said "The template has no extra code, just the jquery and jquery ui plugin." - is the issue persisting when you remove this code and plugin from the template?

0 votesVote for this answer Mark as a Correct answer

Shweta S answered on August 2, 2017 18:56

Same error even after I remove plugins from the template. Basically the template just has a webpartzone.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.