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

radcomboboxscripts.js error when using embedded script set to false

2 Answers 49 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
cheah
Top achievements
Rank 1
cheah asked on 28 Oct 2014, 08:41 AM
Hi all, I got a question, right now I face some issue about the radcombobox when using embedded script = false,
Here is my registered script.

001.<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="True">
002.     
003.        <Scripts>
004.            <%--<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
005.            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
006.            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />--%>
007.            <asp:ScriptReference Path="Scripts/json2.js" />
008.            <asp:ScriptReference Path="Scripts/Common/Core.js" />
009.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
010.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
011. 
012.               <%--radcombobox --%>
013.       <asp:ScriptReference Path="Scripts/Common/Core.js" />
014.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
015.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
016.            <asp:ScriptReference Path="Scripts/Common/Navigation/OverlayScript.js" />
017.            <asp:ScriptReference Path="Scripts/Common/Navigation/NavigationScripts.js" />
018.            <asp:ScriptReference Path="Scripts/Common/Animation/AnimationScripts.js" />
019.            <asp:ScriptReference Path="Scripts/ComboBox/RadComboBoxScripts.js" />
020.            <asp:ScriptReference Path="Scripts/Common/TouchScrollExtender.js" />
021. 
022.        <asp:ScriptReference Path="Scripts/json2.js" />
023.            <asp:ScriptReference Path="Scripts/Common/Core.js" />
024.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
025.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
026. 
027. 
028.              <asp:ScriptReference Path="Scripts/Common/Core.js" />
029.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
030.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
031.            <asp:ScriptReference Path="Scripts/Common/Navigation/OverlayScript.js" />
032.            <asp:ScriptReference Path="Scripts/Common/Navigation/NavigationScripts.js" />
033.            <asp:ScriptReference Path="Scripts/Menu/RadMenuScripts.js" />
034.             
035.            <asp:ScriptReference Path="Scripts/Menu/MenuItem/RadMenuItem.js" />
036.            <asp:ScriptReference Path="Scripts/Menu/MenuItem/MobileMenuItem.js" />
037.            <asp:ScriptReference Path="Scripts/Menu/Views/ClassicView.js" />
038.            <asp:ScriptReference Path="Scripts/Menu/Views/LiteView.js" />
039. 
040. 
041.            <%-- RadAsyncUpload--%>
042.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
043.            <asp:ScriptReference Path="Scripts/Upload/RadProgressManager.js" />
044.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
045.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
046.            <asp:ScriptReference Path="Scripts/Upload/RadUpload.js" />
047.            <asp:ScriptReference Path="Scripts/AsyncUpload/RadAsyncUploadScripts.js" />
048.            <asp:ScriptReference Path="Scripts/Common/Popup/PopupScripts.js" />
049.            <asp:ScriptReference Path="Scripts/Upload/RadProgressArea.js" />
050. 
051.             <%--RadGrid --%>
052.                <asp:ScriptReference Path="Scripts/Common/Core.js" />
053.                <asp:ScriptReference Path="Scripts/Common/jQuery.js"  />
054.                <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js"  />
055.                <asp:ScriptReference Path="Scripts/Grid/RadGridScripts.js" />
056.                <asp:ScriptReference Path="Scripts/Grid/GridCellSelection.js" />
057.                <asp:ScriptReference Path="Scripts/Common/TouchScrollExtender.js" />
058. 
059.             
060. 
061.           
062. 
063.              <%--RadFormDecorator --%>
064.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
065.            <asp:ScriptReference Path="Scripts/FormDecorator/RadFormDecorator.js" />
066.            <asp:ScriptReference Path="Scripts/Common/Popup/PopupScripts.js" />
067.             
068. 
069.             <%--RadAjaxManager,radajaxloadingpanel --%>
070.               <asp:ScriptReference Path="Scripts/Common/Core.js" />
071.                <asp:ScriptReference Path="Scripts/Ajax/Ajax.js" />
072.  
073.           
074. 
075.    <%--radwindowmanager --%>
076.            <asp:ScriptReference Path="Scripts/Common/Core.js" />
077.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
078.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
079.            <asp:ScriptReference Path="Scripts/Common/Widgets/Draggable.js" />
080.            <asp:ScriptReference Path="Scripts/Common/Widgets/Resizable.js" />
081.            <asp:ScriptReference Path="Scripts/Common/PopUp/PopUpScripts.js" />
082.            <asp:ScriptReference Path="Scripts/Common/Animation/AnimationScripts.js" />
083.            <asp:ScriptReference Path="Scripts/Window/RadWindowScripts.js" />
084.            <asp:ScriptReference Path="Scripts/Common/TouchScrollExtender.js" />
085.            <asp:ScriptReference Path="Scripts/Window/RadWindowManager.js" />
086. 
087.            <%--radbutton --%>
088.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
089.            <asp:ScriptReference Path="Scripts/Common/jQuery.js"  />
090.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js"  />
091.            <asp:ScriptReference Path="Scripts/Button/RadButtonScripts.js" />
092. 
093. 
094.            <%--RadTextBox--%>
095.            <asp:ScriptReference Path="Scripts/Common/Core.js" />
096.            <asp:ScriptReference Path="Scripts/Input/TextBox/RadInputScript.js" />
097. 
098.           <%--RadToolTip--%>
099.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
100.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
101.            <asp:ScriptReference Path="Scripts/Common/jQueryPlugins.js" />
102.            <asp:ScriptReference Path="Scripts/Common/Animation/AnimationScripts.js" />
103.            <asp:ScriptReference Path="Scripts/Common/PopUp/PopUpScripts.js" />
104.            <asp:ScriptReference Path="Scripts/ToolTip/RadToolTipScripts.js" />
105.            <asp:ScriptReference Path="Scripts/Common/TouchScrollExtender.js" />
106.            <asp:ScriptReference Path="Scripts/ToolTip/Scripts/RadToolTipManager.js" />
107.      
108.           
109. 
110.             <%--RadTabStrip--%>
111.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
112.            <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
113.            <asp:ScriptReference Path="Scripts/Common/Scrolling/ScrollingScripts.js" />
114.            <asp:ScriptReference Path="Scripts/Common/Navigation/NavigationScripts.js" />
115.            <asp:ScriptReference Path="Scripts/TabStrip/RadTabStripScripts.js" />
116. 
117. 
118.             <%--RadMultiPage--%>
119.               <asp:ScriptReference Path="Scripts/Common/Core.js" />
120.            <asp:ScriptReference Path="Scripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
121. 
122.             <%--RadNumericTextBox--%>
123.             <asp:ScriptReference Path="Scripts/Common/Core.js" />
124.            <asp:ScriptReference Path="Scripts/Input/TextBox/RadInputScript.js" />              
125.            <asp:ScriptReference Path="Scripts/Input/NumericTextBox/RadNumericInputScript.js" />
126. 
127. 
128.          <%--RadDatePicker--%>
129.                      
130.              <asp:ScriptReference Path="Scripts/Common/Core.js" />
131.    <asp:ScriptReference Path="Scripts/Common/jQuery.js" />
132.    <asp:ScriptReference Path="Scripts/Input/TextBox/RadInputScript.js" />              
133.    <asp:ScriptReference Path="Scripts/Input/DateInput/RadDateInputScript.js" />                   
134.    <asp:ScriptReference Path="Scripts/Calendar/RadCalendarCommonScript.js" />             
135.    <asp:ScriptReference Path="Scripts/Calendar/RadCalendarScript.js" />
136.    <asp:ScriptReference Path="Scripts/Calendar/RadDatePicker.js" />
137.    <asp:ScriptReference Path="Scripts/Calendar/RadDateTimePickerScript.js" />
138.    <asp:ScriptReference Path="Scripts/Calendar/RadTimeViewScripts.js" />
139.    <asp:ScriptReference Path="Scripts/Calendar/RadPickersPopupDirectionEnumeration.js" />
140. 
141. 
142. 
143. 
144. 
145.        </Scripts>
146. 
147.</telerik:RadScriptManager>

But when I try to use it in some pages, it prompted this error behind.

Uncaught TypeError: Cannot read property 'Classic' of undefined 


Example of my code:

1.<telerik:RadComboBox ID="MultiCheckComboLocation" runat="server" CheckBoxes="true"
2.                                            Width="80%"  ZIndex="1000000"
3.                                            ShowMoreResultsBox="true"
4.                                            EnableVirtualScrolling="true" CheckedItemsTexts="DisplayAllInInput" 
5.                                            EnableCheckAllItemsCheckBox="true" EnableEmbeddedScripts="False">
6.                                        </telerik:RadComboBox>

Can anybody guide me on this? Thanks

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 31 Oct 2014, 06:40 AM
Hello,

I was able to replicate the described issue and indeed there is a slight change in the scripts reference needed. You  should reference the scripts, responsible for the Views of the RadComboBox, along with a reference to the AnimationFramework. Please consider the adding the below script references:

<asp:ScriptReference Path="Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="Scripts/ComboBox/Views/ClassicView.js" />
<asp:ScriptReference Path="Scripts/ComboBox/Views/LiteView.js" />

In addition, the documentation article, demonstrating how to reference the needed scripts will be modified accordingly.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
cheah
Top achievements
Rank 1
answered on 31 Oct 2014, 07:30 AM
Hi Nencho,

Thank you for your help. 

Regards,
Cheah
Tags
ScriptManager and StyleSheetManager
Asked by
cheah
Top achievements
Rank 1
Answers by
Nencho
Telerik team
cheah
Top achievements
Rank 1
Share this question
or