This question is locked. New answers and comments are not allowed.
Hi all,
I followed instruction from Telerik MVC extension that I register all scripts at the bottom of my master page by calling <% Html.Telerik().ScriptRegistrar(); %>, it works fines with all Telerik controls.
But meanwhile I also have my customized code to leverage jquery library, in content page I may have something like:
<script type="text/javascript">
$(document).ready(function () {
alert('document ready');
// ....
});
</script>
When I run my page, browser just complains that $ is not defined, the reason is simple: because the library reference <script type="text/javascript" src="/Scripts/2010.3.1318/jquery-1.4.4.min.js"></script> (rendered by <% Html.Telerik().ScriptRegistrar(); %>) appears at bottom of page (in master page), it is even after my script is defined.
What shall be the proper solution I still need to utilize jquery library to do something else, but I should not break script registration for Telerik controls?
Thanks
Hardy
I followed instruction from Telerik MVC extension that I register all scripts at the bottom of my master page by calling <% Html.Telerik().ScriptRegistrar(); %>, it works fines with all Telerik controls.
But meanwhile I also have my customized code to leverage jquery library, in content page I may have something like:
<script type="text/javascript">
$(document).ready(function () {
alert('document ready');
// ....
});
</script>
When I run my page, browser just complains that $ is not defined, the reason is simple: because the library reference <script type="text/javascript" src="/Scripts/2010.3.1318/jquery-1.4.4.min.js"></script> (rendered by <% Html.Telerik().ScriptRegistrar(); %>) appears at bottom of page (in master page), it is even after my script is defined.
What shall be the proper solution I still need to utilize jquery library to do something else, but I should not break script registration for Telerik controls?
Thanks
Hardy