1

我正在使用 Telerik 和常规的 jQuery UI。

我有这样的文件,

查询:

<script src="<%: Url.Content("~/Scripts/jquery-1.7.2.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.20.custom.min.js") %>" type="text/javascript"></script> 

泰勒里克

我试过了,

<%= Html.Telerik().ScriptRegistrar() %>

<%= Html.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false) %>

使用jQuery(false).jQueryValidation(false)我收到错误:

Microsoft JScript 运行时错误:对象不支持属性或方法“应用”

没有jQuery(false).jQueryValidation(false)即带有 <%= Html.Telerik().ScriptRegistrar() %>

jQuery UI 不工作。错误:Microsoft JScript 运行时错误:对象不支持属性或方法“按钮”

<button id="Button1">Button1</button>

    <script language="javascript" type="text/javascript">
        $(function () {

            $("#Button1").button().click(function () {
                location.href = '/One/Two';
            });

        });
    </script>
4

1 回答 1

2

This sounds like the same (or very similar) problem that we had after setting up Telerik. I'm assuming the scripts and telerik code you posted above is all on your master page(or layout)? Try deleting

<%= Html.Telerik().ScriptRegistrar() %>

from the master page and paste it to the bottom of each individual view that actually uses a telerik control. That is what worked for us.

于 2012-09-10T19:18:27.000 回答