This is a migrated thread and some comments may be shown as answers.

Insert form always to be open

1 Answer 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 01 Nov 2013, 10:18 AM
hi.
how to keep the insert form always to be open.? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Nov 2013, 10:24 AM
Hi Dawson,

Please try the following code snippet to keep Insert form always open.

C#:
protected void Page_Load(object sender, EventArgs e)
{
    //Keep Insert Form Open on Page load
    RadGrid1.MasterTableView.IsItemInserted = true;
}
 
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
   // Cancel the close event on Insert and Cancel clicks of the Form
    if (e.CommandName == RadGrid.PerformInsertCommandName || e.CommandName == RadGrid.CancelCommandName)
    {
        e.Canceled = true;
    }
}

Thanks,
Princy
Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or