Hello,
I have a model defined as
public class Parent
{
public List<Child> Children { get; set; }
}
public class Child
{
property int Id { get; set;}
property string Name {get; set;}
property int Age {get; set;}
}
My goal is to have a grid on my main page whereas the model is the parent and the grid is used to populate the Children list. I do not want the grid to invoke any server method. It should just populate the Children list. When the parent is saved, I am intending that its Children list will contain the items added within the Parent's POST operation.
I can create the grid, but I can't seem to get it to add items. When I add the toolBar.Create() option, I get the following error;
"The Insert data binding setting is required by the insert command. Please specify the Insert action or url in the DataBinding configuration."
But I don't want any insert action to occur on the server. I just want the grid to populate the Children list on the client.
How can I do this?