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;
<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(
});
}).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!!
column.For(x => x.Nombre).HeaderText(
Hi angel.
Sorry, i think the scripts no are the same, but you say:
ig.ui.js and ig.ui.min.js are the same???
and same case:
jquery-1.4.4.js and jquery-1.4.4.min.js??
if they are the same, then, what is the good??
hi,
as a start i would suggest to remove all duplicate jquery and ig references first. you only need to declare them once.
let me know if this helps. Thanks,
Angel
and now i'm using these scripts in my _layout.cshtml
Hi Angel.
now i'm try these option, in the same scenary, usin all features(except groupby, hiding and rezising), but don't work, now the error is "the object Records its null or not recognize".
do you have an idea what js need for this example, i followed the same steps in the example page of infragistics, and the name of class is the same.
NOTE: in my view i'm using this code:
@(Html.Infragistics().Grid("grid", Model.AllFeaturesModel))
and in my controller i create the follow methods:
public ActionMethod Allfeatures(){
GridAllFeaturesModel model = new GridAllFeaturesModel();
model.AllFeaturesModel.DataSourceUrl = Url.Action("GetDataAllFeatures");
this.InitializeAllFeaturesGridOptions(model.AllFeaturesModel);
retur View("AllFeatures", model);
}
public JSonResult GetDataAllFeatures(){
model.AllFeaturesModel.DataSource = _repository.GetAllPaises();
return model.AllFeaturesModel.GetData();
private void InitializeAllFeaturesGridOptions(GridModel model){
model.Columns.Add(new GridColumn(HttpContext.GetGlobalResourceObject("igGridResources", "idPais").ToString(), "idPais", "string", "100px"));
model.Columns.Add(new GridColumn(HttpContext.GetGlobalResourceObject("igGridResources", "Nombre").ToString(), "Nombre", "string", "250px"));
and the features...
thanks a lot, it works.