Sitefinity Kendo syncReady 问题
Sitefinity Kendo syncReady problems
我想在我的 Sitefinity 视图中使用 MVC Kendo 的控件,例如 @Html.Kendo().TextBox()
和 @(Html.Kendo().Grid
。在视图中,我添加了 ScriptRef.JQuery
和 ScriptRef.KendoWeb
以及样式表。在 ASP.NET MVC R3 2020 示例项目中,我使用 DLL 文件 Kendo.Mvc.dll 包装器作为 Sitefinity 中的参考。但是当我 运行 应用程序时,我收到错误 Uncaught TypeError: kendo.syncReady is not a function at Preview:1160
。非常感谢任何有关代码定义步骤的帮助。
Sitefinity 中的包装器路径引用
C:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC R3 2020\wrappers\aspnetmvc\Examples\MVC5\Kendo.Mvc.Examples\bin
查看
@using Kendo.Mvc.UI
@Html.Script(ScriptRef.JQuery, "head", true)
@Html.Script(ScriptRef.KendoWeb, "head", true)
@Html.Section("jquery")
@Html.Section("kendo")
@Html.StyleSheet(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.Kendo.styles.kendo_common_min.css"), sectionName: "head", throwException: false)
@Html.StyleSheet(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.Kendo.styles.kendo_bootstrap_min.css"), sectionName: "bottom", throwException: false)
@Html.Kendo().TextBox().Name("customSearch")
这是小部件视图还是页面模板视图?
如果是小部件视图,您最好删除这两个部分:
@Html.Section("jquery")
@Html.Section("kendo")
此外,请确保您的页面视图中有一个名为“head”的部分
为防止此错误,您需要确保您的 kendo 初始化代码:
@Html.Kendo().TextBox().Name("customSearch")
被放置在 kendo/jquery js 脚本之后。
只需检查您网页的来源并确保以上内容正确无误。
我想在我的 Sitefinity 视图中使用 MVC Kendo 的控件,例如 @Html.Kendo().TextBox()
和 @(Html.Kendo().Grid
。在视图中,我添加了 ScriptRef.JQuery
和 ScriptRef.KendoWeb
以及样式表。在 ASP.NET MVC R3 2020 示例项目中,我使用 DLL 文件 Kendo.Mvc.dll 包装器作为 Sitefinity 中的参考。但是当我 运行 应用程序时,我收到错误 Uncaught TypeError: kendo.syncReady is not a function at Preview:1160
。非常感谢任何有关代码定义步骤的帮助。
Sitefinity 中的包装器路径引用
C:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC R3 2020\wrappers\aspnetmvc\Examples\MVC5\Kendo.Mvc.Examples\bin
查看
@using Kendo.Mvc.UI
@Html.Script(ScriptRef.JQuery, "head", true)
@Html.Script(ScriptRef.KendoWeb, "head", true)
@Html.Section("jquery")
@Html.Section("kendo")
@Html.StyleSheet(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.Kendo.styles.kendo_common_min.css"), sectionName: "head", throwException: false)
@Html.StyleSheet(Url.EmbeddedResource("Telerik.Sitefinity.Resources.Reference", "Telerik.Sitefinity.Resources.Scripts.Kendo.styles.kendo_bootstrap_min.css"), sectionName: "bottom", throwException: false)
@Html.Kendo().TextBox().Name("customSearch")
这是小部件视图还是页面模板视图?
如果是小部件视图,您最好删除这两个部分:
@Html.Section("jquery")
@Html.Section("kendo")
此外,请确保您的页面视图中有一个名为“head”的部分
为防止此错误,您需要确保您的 kendo 初始化代码:
@Html.Kendo().TextBox().Name("customSearch")
被放置在 kendo/jquery js 脚本之后。
只需检查您网页的来源并确保以上内容正确无误。