a button call Radgrid addnew - need help

3 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 14 Sep 2010 Link to this post

    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. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 14 Sep 2010 Link to this post

    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
  3. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 15 Sep 2010 Link to this post

    thank you Daniel.  It works for me!
Back to Top