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

Edit a radgrid item on new page

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arno
Top achievements
Rank 1
Arno asked on 10 Oct 2012, 12:31 PM
In an already existing application I need to make an adjustment. If a user wants to edit a record, the record should be edited on a new page in stead of using a popup. The RadGrid Editmode does not support such function. How can I adjust the control, so I have a link to a new page for editing?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 11 Oct 2012, 04:52 AM
Hi,

One suggestion is to navigate to a new page on clicking the edit button where you can put the controls to edit.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem dataitem = (GridDataItem)e.Item;
        LinkButton lnk = (LinkButton)dataitem["AutoGeneratedEditColumn"].Controls[0]; //accessing the edit button( if AutoGenerateEditColumn set true)
        lnk.PostBackUrl = "EditPage.aspx";
    }
}

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