I'm using UI for ASP.NET core 2020.3.1118, and i'm trying to implement a child grid with the ability to add an entry to my child grid
I need to pass the Id value from my Parent Grid to the model of the child when i add a new entry
I've been trying to use the
model.Field(gp => gp.GroupId).DefaultValue(0);
using a kendo template value "#=id#" in the child grid definition, without success as the DefaultValue method only seems to allow to accept actual values.
I'm really looking for advice here,
i've currently resolved the issue by passing an additional parameter in my Create action and updating the model in my controler with the parameter
.Create(create => create.Action(
"Post"
,
"GroupsPermission"
,
new
{ NewGroupId =
"#=Id#"
}))
Thanks in Advance