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

RadGrid EditForm showing when not wanted

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Veteran
DoomerDGR8 asked on 09 Nov 2010, 10:01 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 09 Nov 2010, 10:34 AM
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.
0
Rajendran
Top achievements
Rank 1
answered on 19 Jul 2013, 08:51 AM
thanks 4 sharing ur knowledge... i fixed my bug and its working fine. 
Tags
Grid
Asked by
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Princy
Top achievements
Rank 1
Rajendran
Top achievements
Rank 1
Share this question
or