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

button inside grid doesn't fire OnItemCommand

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karen
Top achievements
Rank 1
Karen asked on 22 Oct 2008, 02:18 PM
Hi

I have a button inside GridTemplateColumn

                                        <telerik:GridTemplateColumn ItemStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:Button ID="DeleteBtn" CommandName="Delete" CommandArgument="1" runat="server" CssClass="SmallRedBtn" Text="delete" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>

But clicking the button doesn't fire OnItemCommand, however if I replace button with LinkButton event successfully firing, any ideas?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Oct 2008, 03:17 PM
Hello Karen,

I'm unable to reproduce the depicted behavior. Please try the attached test website and let us know whether the issue is reproducible.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Karen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or