I have a grid with a single hierarchical child grid that the user may expand. I have the load mode set to "Client" and the edit mode set to "InPlace".
I want there to always be an insert row for the user to add new rows with if they wish. I have accomplished this with the master grid view (parent grid) with this function:
protected
void
radGrid1_PreRender(
object
sender, System.EventArgs e)
{
if
(!radGrid1.MasterTableView.IsItemInserted)
radGrid1.MasterTableView.InsertItem();
}
This will cause there to always be an insert row.
However, with the child grid in client mode, there is no callback between expand and collapse for the child grids.
I've tried this with no success:
protected
void
radGrid1_PreRender(
object
sender, System.EventArgs e)
{
if
(!radGrid1.MasterTableView.IsItemInserted)
radGrid1.MasterTableView.InsertItem();
if
(!rgPieces.MasterTableView.DetailTables[0].IsItemInserted)
rgPieces.MasterTableView.DetailTables[0].InsertItem();
}
What am I supposed to do here?