You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration/jquery/using-jquery.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,27 +66,31 @@ You can disable the jQuery scripts our controls bring by default via the followi
66
66
67
67
1. Load the custom version of jQuery you want to use. At this point you have the jQuery embedded in the Telerik controls and the custom one that is loaded via the following code. Proceed to the next step if you want to replace the embedded version with the custom one.
1. Disable the embedded jQuery library as described in [Disabling the embedded jQuery]({%slug scriptmanager/disabling-the-embedded-jquery%}) help article.
78
79
79
80
1. Configure the ScriptReferences in **RadScriptManager** as shown in following sample. The script that integrates the external jQuery library in our client-side library is located in the file **jQueryExternal.js**.
You can find a demonstration in the following video:
93
+
<iframewidth="560"height="315"src="https://www.youtube.com/embed/krq1zMFIezA?si=p9xGj92efVweL2TW"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
90
94
91
95
92
96
>important The Telerik controls depend on the specific version of jQuery they are tested against (above you can check the version that is used in each release of UI for ASP.NET AJAX). It is possible that using an older version of jQuery or a version, greater than the latestone from the [jQuery Version History in Telerik UI Controls](#jquery-version-history-in-telerik-ui-controls) section, will break the controls.
@@ -104,16 +108,17 @@ Fortunately there are easy ways to enable back the **$ alias.** Choose one of th
104
108
105
109
* Using a global variable
106
110
107
-
**JavaScript**
111
+
````JavaScript
108
112
109
113
<script type="text/javascript">
110
114
window.$ = $telerik.$;
111
115
</script>
116
+
````
112
117
113
118
114
119
* Using a self-calling anonymous function (**Example 1**):
115
120
116
-
**JavaScript**
121
+
````JavaScript
117
122
118
123
<script type="text/javascript">
119
124
(function ($) {
@@ -123,30 +128,31 @@ Fortunately there are easy ways to enable back the **$ alias.** Choose one of th
123
128
);
124
129
})($telerik.$);
125
130
</script>
131
+
````
126
132
127
133
128
134
* Using the **$telerik.$** alias:
129
135
130
-
**JavaScript**
136
+
````JavaScript
131
137
132
138
<script type="text/javascript">
133
139
$telerik.$(document).ready(function () {
134
140
alert("Document is ready");
135
141
});
136
142
</script>
137
-
143
+
````
138
144
139
145
* Include a script reference to the **Telerik.Web.UI.Common.jQueryInclude.js**:
0 commit comments