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

External Button triggering Insert template to show?

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
sitefinitysteve asked on 07 Dec 2010, 02:13 AM
Is there a way I can have an external button (not in side the grid\command template) to tell the grid to show the insert template, and then the automatic operations can handle it from there?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Dec 2010, 05:31 AM
Hello Steve,

Try the following code snippet in Button click event to open insert form.

C#:
protected void Button1_Click(object sender, EventArgs e)
   {
       RadGrid1.MasterTableView.IsItemInserted = true;
       RadGrid1.MasterTableView.Rebind();
   }

Thanks,
Princy.
Tags
Grid
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Princy
Top achievements
Rank 2
Share this question
or