Hi,
I'm using a radgrid containing DetailTables and EditFormTemplate for parent and child,
I want to know how can i insert or edit an item at time (Parnent or child) i found this tutorial :Edit/Insert Once
i changed the code as bellow
but it allow me to insert child and parent item in the same time or Edit different child item at the same time too.
thx.
I'm using a radgrid containing DetailTables and EditFormTemplate for parent and child,
I want to know how can i insert or edit an item at time (Parnent or child) i found this tutorial :Edit/Insert Once
i changed the code as bellow
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Item.OwnerTableView.ClearEditItems();
grid.MasterTableView.ClearEditItems();
e.Item.OwnerTableView.IsItemInserted = false;
grid.MasterTableView.IsItemInserted = false;
}
if (e.CommandName == RadGrid.EditCommandName)
{
e.Item.OwnerTableView.ClearEditItems();
grid.MasterTableView.ClearEditItems();
e.Item.OwnerTableView.IsItemInserted = false;
grid.MasterTableView.IsItemInserted = false;
}
but it allow me to insert child and parent item in the same time or Edit different child item at the same time too.
thx.