Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
765
igGrid Jquery MVC3, problem with the object "widget"
posted

Hi.

i'm using igGrid in a solution with multi projects, in my one of my views i have this code:

 

@inherits System.Web.Mvc.

 

WebViewPage<IQueryable<CxcModels.Models.tblPaises>>

@using Infragistics.Web.Mvc; 

 

 

<link href="@Url.Content("~/Content/IGStyles/min/ig/jquery.ui.custom.min.css")"rel="stylesheet" type="text/css" />

 

 

<link href="@Url.Content("~/Content/IGStyles/base/ig.ui.min.css")" rel="stylesheet" type="text/css" />

 

 

<script src="@Url.Content("~/Scripts/IG/ig.ui.min.js")" type="text/javascript" />

 

 

<h2>Catalogo de Pais</h2>

<

 

 

 

@(Html.Infragistics().Grid(Model).ID(

 

 

column.For(x => x.idPais).HeaderText(

 

 

 

}).Features(features =>{

features.Selection().Mode(

 

 

features.Filtering().ColumnSettings(settings =>{

settings.ColumnSetting().ColumnKey("idPais").AllowFiltering(false).FilterCondition("igual a");

settings.ColumnSetting().ColumnKey(

 

"Nombre").AllowFiltering(true).FilterCondition("termine con");

 

});

}).DataSourceUrl(Url.Action("Index")).DataBind().Render()

but i have a error in this code, because, JScrip thorw this error: "Can't use the propierty or method WIDGET", in a file js ig.ui.min.

somebody help me, thanks!!

SelectionMode.Cell).MultipleSelection(true);

"idPais").Width("150px");

column.For(x => x.Nombre).HeaderText(

 

"Nombre").Width("250px");

p>@Html.ActionLink("Crear Pais", "Create")</p> "gridPaises").PrimaryKey("idPais").Height("400px").Columns(column =>{

Parents
No Data
Reply
  • 765
    posted

    Sorry the code in my view is this:

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    @inherits System.Web.Mvc.

     

    WebViewPage<IQueryable<CxcModels.Models.tblPaises>>

    @

     

    using Infragistics.Web.Mvc;

     

     

     

    <link href="@Url.Content("~/Content/IGStyles/min/ig/jquery.ui.custom.min.css")" rel="stylesheet" type="text/css" />

     

     

     

    <link href="@Url.Content("~/Content/IGStyles/base/ig.ui.min.css")" rel="stylesheet" type="text/css" />

     

     

     

    <script src="@Url.Content("~/Scripts/IG/ig.ui.min.js")" type="text/javascript" />

    <

     

     

    h2>Catalogo de Pais</h2>

    <

     

     

    p>@Html.ActionLink("Crear Pais", "Create")</p>

     

    @(Html.Infragistics().Grid(Model).ID(

     

    "gridPaises").PrimaryKey("idPais").Height("400px").Columns(column =>{

    column.For(x => x.idPais).HeaderText(

     

    "idPais").Width("150px");

    column.For(x => x.Nombre).HeaderText(

     

    "Nombre").Width("250px");

    }).Features(features =>{

    features.Selection().Mode(

     

    SelectionMode.Cell).MultipleSelection(true);

    features.Filtering().ColumnSettings(settings =>{

    settings.ColumnSetting().ColumnKey(

     

    "idPais").AllowFiltering(false).FilterCondition("igual a");

    settings.ColumnSetting().ColumnKey(

     

    "Nombre").AllowFiltering(true).FilterCondition("termine con");

    });

    }).DataSourceUrl(Url.Action(

     

    "Index"

    )).DataBind().Render()

     

Children