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

a button call Radgrid addnew - need help

2 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 14 Sep 2010, 06:15 PM
I want to have a regular button outside the radgrid, when click it, the grid opens a new row with update, delete command button on the row -- functional exactly the same as when setting grid CommanditemDisplay=top,  but it's not a add new button inside the grid, a button outside the grid.

How can i do that?

Thanks!!!



2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Sep 2010, 09:30 PM
Hello Jessie,

Try the following:
<asp:Button ID="Button1" runat="server" Text="Insert" onclick="Button1_Click" />

protected void Button1_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.InsertItem();
}

I hope this helps.

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JJ
Top achievements
Rank 1
answered on 15 Sep 2010, 04:16 PM
thank you Daniel.  It works for me!
Tags
Grid
Asked by
JJ
Top achievements
Rank 1
Answers by
Daniel
Telerik team
JJ
Top achievements
Rank 1
Share this question
or