RadGrid EditForm showing when not wanted

3 posts, 1 answers
  1. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 09 Nov 2010 Link to this post

    Dear Telerik,

    I am using a RadGrid with as custom data entry form and both are related only when the user clicks a link in the grid's row that fills up the Data enrty form with the row values. All manual. Now, this link column is actually this:

    <telerik:GridTemplateColumn HeaderText="" UniqueName="EditColumn">
        <ItemTemplate>
            <asp:LinkButton CommandName="Edit" ID="LinkButtonEdit" runat="server">
                <asp:Image ID="ImageEdit" runat="server" ImageUrl="~/Images/Grid/Edit.gif" AlternateText="Edit" /></asp:LinkButton>
        </ItemTemplate>
    </telerik:GridTemplateColumn>  

    Everything works fine but upon clicking the link to edit, the grid row drops and shows a bit of it's built in edit form. I need to disable that.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Nov 2010 Link to this post

    Hello Hassan,

    Since you have set the CommandName of LinkButton as 'Edit, it will show the default edit form of RadGrid. In order to hide the default edit form , change the CommandName of LinkButton to any custom command name.

    ASPX:
    <telerik:GridTemplateColumn HeaderText="" UniqueName="EditColumn">
        <ItemTemplate>
            <asp:LinkButton CommandName="EditRow" ID="LinkButtonEdit" runat="server">
                <asp:Image ID="ImageEdit" runat="server" ImageUrl="~/Images/Grid/Edit.gif" AlternateText="Edit" /></asp:LinkButton>
        </ItemTemplate>
    </telerik:GridTemplateColumn

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rajendran
    Rajendran avatar
    1 posts
    Member since:
    Aug 2012

    Posted 19 Jul 2013 Link to this post

    thanks 4 sharing ur knowledge... i fixed my bug and its working fine. 
Back to Top