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
195
MVC Hierarchical grid
posted

Hello,

I'm testing the MVC Hierarchical grid with the following code. I can't edit the child rows and I can't select one child row, it selects all the child row.

@(Html.Infragistics()
.Grid(Model)
.ID("igGrid")
.AutoGenerateColumns(false)
.PrimaryKey("ID")
.Features(f =>
{
f.Updating().EditMode(GridEditMode.Row);
})
.UpdateUrl(Url.Action("CfgCatalogsSaveData"))
.Columns(column =>
{
column.For(x => x.ID).HeaderText("ID");
column.For(x => x.Name).HeaderText("Name");
})
.ColumnLayouts(layouts => {

layouts.For(x => x.CfgCatalogItems)
.PrimaryKey("ID")
.AutoGenerateColumns(false)
.AutoCommit(true)
.Columns(childcols1 =>
{
childcols1.For(x => x.ChoiceValue).HeaderText("Valeur");
childcols1.For(x => x.Label).HeaderText("Texte");
childcols1.For(x => x.Congruent).HeaderText("Compliant");
})
.Features(g =>
{
g.Updating().EditMode(GridEditMode.Row);
})
;
})

.DataBind()
.Render())

Best regards,

Alain