or
<
telerik:RadWindow
ID
=
"wdwDetail"
Modal
=
"true"
Skin
=
"Telerik"
Width
=
"800px"
AutoSize
=
"true"
AutoSizeBehaviors
=
"Height"
OnClientAutoSizeEnd
=
"OnClientShowCenterOnly"
runat
=
"server"
VisibleOnPageLoad
=
"false"
VisibleStatusbar
=
"false"
IconUrl
=
"~/img/favicon.ico"
ShowContentDuringLoad
=
"true"
Title
=
"Detailed Info"
DestroyOnClose
=
"false"
EnableShadow
=
"true"
Behaviors
=
"Close"
>
<
ContentTemplate
>
...
</
ContentTemplate
>
</
telerik:RadWindow
>
<
telerik:GridEditCommandColumn
UniqueName
=
"EditCommandColumn"
EditImageUrl
=
"~/Images/Edit.gif"
ButtonType
=
"ImageButton"
>
</
telerik:GridEditCommandColumn
>
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
ImageButton edit = (ImageButton)item["EditCommandColumn"].Controls[0];
//edit.Attributes.Add("OnClick", " onContactRowSelected('" + sender + "','" + e + "');");
edit.Attributes["onClick"] = "alert('test');return false;";
}
<
ClientEvents
OnCommand
=
"radContactGrid_Command"
OnRowCreated
=
"onContactGridRowCreated"
OnRowCreating
=
"onContactGridRowCreating"
OnRowSelected
=
"onContactRowSelected"
/>