Hi.
I can't use Infragistics in my solution, I agree the reference Infragistics.Web.Mvc.dll, but don't work, the version installed is 2011.2, and this is the code in my view:
@model Infragistics.Web.Mvc.SampleViewPage<IQueryable<CxcModels.Models.tblPaises>>
@
<
@(Html.Infragistics().Grid(Model).ID(
.AutoGenerateColumns(
.Columns(column => {column.For(x => x.idPais).DataType("string").HeaderText("Pais");
column.For(x => x.Nombre).DataType(
features.Selection().MouseDragSelect(
})
.Features(features =>{
features.Paging().VisiblePageCount(5).ShowPageSizeDropDown(
features.Sorting().Mode(SortingMode.Single).ColumnSettings(settings =>{
settings.ColumnSetting().ColumnKey(
features.Selection().MouseDragSelect(true).MultipleSelection(true).Mode(SelectionMode.Cell); .DataSourceUrl(Url.Action("tblPaises"))
.Width(
.Height(
features.Updating();
and there's my references:
I hope and can help me thanks in advance
It looks like you are missing the following two lines:
.Databind().Render()
.Render should be the last method called in your igGrid block. Here is an example:
@( Html.Infragistics().Grid<Models.item>().ID("igGrid1").FixedHeaders(true).Columns(column =>{column.For(x => x.fld1).HeaderText("fld1").Width("90");column.For(x => x.fld2).HeaderText("fld2").Format("MM/dd/yyyy").Width("100");column.For(x => x.fld3).HeaderText("fld3").Format("currency").Width("155");column.For(x => x.fld4).HeaderText("fld4").Width("155");column.For(x => x.fld5).HeaderText("fld5").Format("MM/dd/yyyy").Width("100");}).ClientDataSourceType(ClientDataSourceType.JSON).DataSourceUrl(Url.Action("someFunction", new RouteValueDictionary(new { id = Model.id}))).Width("100%").Height("400").DataBind().Render())
Thanks for you reply.
I have this two line in my code, the problem is that the method does not recognize Infragistics(). the answer is "Are you missing the reference?"
Hi Jason.
this is the problem, thank you is running.
Hello,
If you check the properties of the Infragistics.Web.Mvc assembly is Copy Local set to true? Since the assembly is not installed in the Global Assembly Cache your application will need a local reference to the assembly. If you set Copy Local to true then the application will pull the assembly in and place it in your bin folder by default.