Infragistics jquery 网格与 asp.net mvc 3.0 .net 4.0

发布于 2024-12-25 03:26:25 字数 1200 浏览 3 评论 0原文

这三个人都是新人。 我正在尝试创建示例网格。基本上我遵循这个: http://samples.infragistics.com/jquery/grid/filtering/

这是我的代码: (cshtml)

@using MyInfragistics.Models                
@using Infragistics.Web.Mvc

<div>
    @Html.Infragistics().Grid("grid1", Model.MyGridModel)
</div>

包含的文件位于 _layout.cshtml 中:

<title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link type="text/css" href='@Url.Content("~/Content/Styles/themes/min/ig/jquery.ui.custom.min.css")'  rel="stylesheet" />
    <link type="text/css" href='@Url.Content("~/Content/Styles/themes/base/ig.ui.min.css")'  rel="stylesheet" />

    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.4.2.min.js")"></script>
    <script  type="text/javascript" src='@Url.Content("~/Scripts/Samples/combined/min/ig.ui.min.js")'/>

当我运行代码时,我在 ig.ui.min.js 文件中收到错误:

Microsoft JScript runtime error: Object doesn't support this property or method

New to all three.
I am trying to create sample grid. Basically I am following this: http://samples.infragistics.com/jquery/grid/filtering/

Here is my code:
(cshtml)

@using MyInfragistics.Models                
@using Infragistics.Web.Mvc

<div>
    @Html.Infragistics().Grid("grid1", Model.MyGridModel)
</div>

THe files are included are in _layout.cshtml:

<title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link type="text/css" href='@Url.Content("~/Content/Styles/themes/min/ig/jquery.ui.custom.min.css")'  rel="stylesheet" />
    <link type="text/css" href='@Url.Content("~/Content/Styles/themes/base/ig.ui.min.css")'  rel="stylesheet" />

    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.4.2.min.js")"></script>
    <script  type="text/javascript" src='@Url.Content("~/Scripts/Samples/combined/min/ig.ui.min.js")'/>

When I run the code, I get the error in the ig.ui.min.js file:

Microsoft JScript runtime error: Object doesn't support this property or method

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2025-01-01 03:26:25

好吧,我建议您查看该网站的博客部分。有很多博客,最后都根据博客主题附加了可运行的示例。尝试修改博客中的任何更接近您的场景的示例。

Well I would advice to take a look at Blog Section of the site. There are many blogs at the end of which there are runnable sample attached based on the blog theme. Try to modify any of the samples in the blogs which is more closer to your scenario.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文