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

Multiple Buttons in GridEditCommandColumn

1 Answer 176 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Skaggs
Top achievements
Rank 2
Eric Skaggs asked on 04 Dec 2008, 10:25 PM
Is it possible to have multiple buttons in the GridEditCommandColumn?  I have a need to have both an Edit and a Delete button in this column when simply displaying data.  I need both of these buttons to fire the ItemCommand event as usual.  Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 05 Dec 2008, 05:14 AM
Hi Eric,

I would suggest you to use a GridTemplateColumn to achieve the desired scenario. Place the Linkbuttons in the ItemTemplate with desired CommandNames as shown below.

ASPX:
 <telerik:GridTemplateColumn UniqueName="TempCol"  HeaderText="TempCol"   > 
                          <ItemTemplate> 
                              <asp:LinkButton ID="LinkButton2" runat="server" Text="Edit" CommandName="Edit" ></asp:LinkButton> 
                              <asp:LinkButton ID="LinkButton3" runat="server" Text="Delete"  CommandName="Delete" ></asp:LinkButton> 
                          </ItemTemplate> 
                        </telerik:GridTemplateColumn> 



Regards
Shinu.
Tags
Grid
Asked by
Eric Skaggs
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or