I have a RagGrid. On click of "Add New", I want a customized form. Is this possible?
I tried the following but did not work!
protected void _RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled = true;
this._RadGrid1.EditIndexes.Clear();
e.Item.OwnerTableView.EditFormSettings.UserControlName = "AddControl.ascx";
e.Item.OwnerTableView.InsertItem();
}
}
I tried the following but did not work!
protected void _RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName)
{
e.Canceled = true;
this._RadGrid1.EditIndexes.Clear();
e.Item.OwnerTableView.EditFormSettings.UserControlName = "AddControl.ascx";
e.Item.OwnerTableView.InsertItem();
}
}