Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Grid with EditForm Template
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Grid with EditForm Template

Feed from this thread
  • Andreas avatar

    Posted on Jun 20, 2011 (permalink)

    Hello,

    I have a RadGrid and inside an edit form template which is used to edit and/or insert 'rows'.

    The first problem occurs when I initially load the grid. It shows always the first row of the Grid in edit mode. How can I avoid these? The grid should always look like a normal list. Only if  I do a double click on a row it should open the edit form.

    And my second issue is: If the insert form is open and I open per double click and edit form of an existing row 
    it always close other open edit forms, which is fine but it doesn't close the insert form.

    Thanks for help,
    Andi.

  • Posted on Jun 21, 2011 (permalink)

    Hello Andreas,

    I cannot exactly reproduce the issue you are facing. Please make sure that you have not set that row in Edit mode explicitly from code behind.

    For second scenario, one suggestion is you can close the insert form while opening Edit form in ItemCommand event. Here is the sample code that I tried which worked as expected.

    C#:
    protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == RadGrid.EditCommandName)
     {
        RadGrid1.MasterTableView.IsItemInserted = false;
     
    }

    Thanks,
    Shinu.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Grid > Grid with EditForm Template