<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="ds_MainGrid" GridLines="None"
Skin="WebBlue" Width="1025px" AutoGenerateColumns="False" AllowAutomaticUpdates="True" ShowStatusBar="True" ShowFooter="True" >
<HeaderContextMenu EnableAutoScroll="True">
</HeaderContextMenu>
<MasterTableView DataSourceID="ds_MainGrid" DataKeyNames="ID" ClientDataKeyNames="ID" EditMode="InPlace" >
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
<ItemTemplate>
<asp:Button ID="btn_Row_Options" runat="server" Text="Options" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID">
<EditItemTemplate>
<asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>' Width="27px" ></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' Width="27px"></asp:Label>
</ItemTemplate>
<HeaderStyle Width="20px" HorizontalAlign="Center" />
<ItemStyle Width="20px" />
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" >
<ClientEvents OnCommand="grid_Command" />
</ClientSettings>
</telerik:RadGrid>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function grid_Command(sender, eventArgs)
{
alert('testing');
}
</script>
</telerik:RadCodeBlock>