This question is locked. New answers and comments are not allowed.
Currently we are using jquery 1.4.1 in our application and this is referenced in the master page.
When I add this line <%= Html.Telerik().ScriptRegistrar() %> at the bottom of the page, my tree view works fine with the ajax binding.
However script registrar outputs the following:
| <script type="text/javascript" src="/Scripts/2010.1.309/jquery-1.4.2.min.js"></script> |
| <script type="text/javascript" src="/Scripts/2010.1.309/telerik.common.min.js"></script> |
| <script type="text/javascript" src="/Scripts/2010.1.309/telerik.treeview.min.js"></script> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| jQuery(document).ready(function(){ |
| jQuery('#regionsTreeView').tTreeView({ajax:{"selectUrl":"/Job/AjaxGetTreeViewModel"}});}); |
| //]]> |
| </script> |
This cause certain other elements of my page to break, which I assume is caused by the references to different versions of jQuery, since the page is OK when I remove the Telerik Script Registrar.
I thought that including the following would solve the problem, but the treeview no longer does the on-demand ajax binding if I don't include telerik's reference to jQuery 1.4.2
<%= Html.Telerik().ScriptRegistrar().jQuery(true) %>
Does the treeview work with jQuery 1.4.1? How can I get around this problem? Any help would be greatly appreciated.
Thanks