I use RadGrid a lot, so this one is mystifying me.
I have a RadGrid with a GridTemplateColumn which contains a button. The first time I click on the button I get a postback, but the ItemCommand handler is not triggered. However, if I click the button a second time the ItemCommand handler does get executed (which redirects to a new page so I don't get a third chance to try clicking the button).
The only thing unusual about this RadGrid is that the columns are dynamically created.
Here is the RadGrid Markup
I don't think the ItemCommand code is useful here since when it is called, it works.
Here is the code that creates the columns:
Here is the code that binds the data to the RadGrid - and it calls the above subroutine to add the columns
Thanks for any help.