2012-01-05 66 views
1

所有三个新的。 我正在尝试创建示例网格。基本上我下面这样:http://samples.infragistics.com/jquery/grid/filtering/Infragistics jQuery网格与asp.net mvc 3.0 .net 4.0

这里是我的代码: (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 
+0

试用jQuery-1.4.4或更新版本:) – NT88 2012-01-05 18:18:41

+0

我也尝试过1.5.1,同样的事情 – genericuser 2012-01-05 18:20:24

回答

2

好吧,我会建议看看网站的Blog Section。有很多博客最后都有基于博客主题的可运行示例。尝试修改更接近您的方案的博客中的任何样本。