On my aspx page I have a RadGrid with the following:
<
telerik:GridTemplateColumn
HeaderText
=
"View Order Details"
UniqueName
=
"OrderDetails"
>
<
ItemTemplate
>
<
div
style
=
"vertical-align: middle; text-align: center;"
>
<
asp:ImageButton
ID
=
"btnOrder"
ImageUrl
=
"~\Content\Images\list.png"
runat
=
"server"
Height
=
"25px"
Width
=
"25px"
OnClick
=
"openOrderDetails_Click"
/>
</
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
I have also tried replacing the onclick method with the below and calling the relevant switch statement (after putting in the OnItemCommand in the grid) :
CommandName="OrderDetails" CommandArgument='<%# Bind("identity") %>'
I have a test button outside my radgrid and when I click on this the window opens without any issues:
<
telerik:RadButton
ID
=
"test"
runat
=
"server"
Text
=
"Test"
Skin
=
"MetroTouch"
OnClick
=
"openOrderDetails_Click"
></
telerik:RadButton
>
Can anyone help with getting this to open from the button within the grid