Hi,
We have a grid where we set some datasource model defaultvalues. These then apply to hiddenfor fields on a popup editor template.
This works up to version 2018.3.1017 but does not work in 2019.2.619 and earlier.
Is there a different approach we can take which will work? Or is it a bug?
Grid
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("_AuthMembership"))
Grid DataSource
.DataSource(dataSource => dataSource
...
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.cUsername).DefaultValue(ViewBag.Email);
model.Field(p => p.Id).Editable(false);
})
Editor Template contains
@Html.HiddenFor(model => model.cUsername) ... but it is always null now with 2019.2.619.
Passing values around in ViewBag shows each page knows about value and it worked in 2018.3.1017.
We want to upgrade for newer controls - what can we do please?
Thanks,
Daniel.