I have this code in my RadGrid1_PreRender to display the Insert row when the page is displayed. However, after I've clicked on the "Insert" on the row, the Insert row disappears. I have to have the IsPostBack check because I have a dropdown that has a postpack event.
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
// always display the insert link
this.RadGrid1.MasterTableView.IsItemInserted = true;
this.RadGrid1.MasterTableView.Rebind();
}
}
I've put the same code in the RadGrid1_InsertCommand and in the RadGrid1_ItemInserted events, but the Insert row does not reappear.
Anyone have any ideas how to keep the Insert row always displayed even after an Insert?
Thanks.
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
// always display the insert link
this.RadGrid1.MasterTableView.IsItemInserted = true;
this.RadGrid1.MasterTableView.Rebind();
}
}
I've put the same code in the RadGrid1_InsertCommand and in the RadGrid1_ItemInserted events, but the Insert row does not reappear.
Anyone have any ideas how to keep the Insert row always displayed even after an Insert?
Thanks.