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

Empty CommandArgument and CommandName?

1 Answer 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Moe Greene
Top achievements
Rank 1
Moe Greene asked on 27 May 2011, 07:25 AM

Hi,

I have a RadGrid with a LinkButton inside a   GridTemplateColumn. My problem is that the CommandName and CommandArgument of the LinkButton sometimes is empty when the postback is triggered. What can cause this? The properties of the LinkButton is set in the OnItemDataBound event. How do I solve this?

<Telerik:GridTemplateColumn UniqueName="DeliveredDate" ItemStyle-CssClass="date"><br>                                 <ItemTemplate><br>                                <asp:LinkButton ID="linkButtonMarkAsArrived" runat="server" /><br>                                  </ItemTemplate><br>                               </Telerik:GridTemplateColumn><br>

1 Answer, 1 is accepted

Sort by
0
Genti
Telerik team
answered on 27 May 2011, 09:01 AM
Hello Moe Greene,

I noticed from your code that you have not specified a CommandName attribute for your link button.

Refer to the following article for information on the ItemCommand event and when it is invoked.
ItemCommand Event


Best wishes,
Genti
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Moe Greene
Top achievements
Rank 1
Answers by
Genti
Telerik team
Share this question
or