Hi
Im trying to fire an ItemCommand inside a RadGrid. But nothing happens. I added a GridButtonColumn just for testing and when i press this one it does fire the event. Only the elements inside <tel:GridTemplateColumn><ItemTemplate> does not work.
then I have these 3 buttons. Only the last one fires the event.
Im trying to fire an ItemCommand inside a RadGrid. But nothing happens. I added a GridButtonColumn just for testing and when i press this one it does fire the event. Only the elements inside <tel:GridTemplateColumn><ItemTemplate> does not work.
<tel:RadGrid ID="ShoppingCardRadGrid" runat="server" AutoGenerateColumns="false" |
OnItemCommand="ShoppingCardRadGrid_ItemCommand" |
OnItemDataBound="ShoppingCardRadGrid_ItemDataBound" |
EnableEmbeddedSkins="False" CssClass="tableDesign" ImagesPath="../images/generic/buttons/Grid"> |
<FooterStyle HorizontalAlign="Center" /> |
<AlternatingItemStyle BackColor="#FDF2F2" /> |
<PagerStyle PagerTextFormat="" NextPageImageUrl="../images/generic/buttons/radGridForward.gif" |
PrevPageImageUrl="../images/generic/buttons/radGridBackwards.gif" HorizontalAlign="Center" /> |
<MasterTableView NoMasterRecordsText="Your shopping cart is empty" ShowFooter="true"> |
<Columns> |
<tel:GridTemplateColumn> |
<ItemTemplate> |
<asp:LinkButton runat="server" ID="btnRemove" Text="Remove" CommandName="Remove" |
CommandArgument='<%# Eval ("TicketId") %>'></asp:LinkButton> |
</ItemTemplate> |
</tel:GridTemplateColumn> |
<tel:GridTemplateColumn> |
<ItemTemplate> |
<asp:Button ID="Button1" runat="server" Text="Button" CommandName="Remove"/> |
</ItemTemplate> |
</tel:GridTemplateColumn> |
<tel:GridButtonColumn ButtonType="PushButton" CommandName="ThisDoesTriger"></tel:GridButtonColumn> |