I am trying to test the custom command button functionality. The function does not appear to run.
aspx
<CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
<CommandItemTemplate>
Custom command item template
<asp:LinkButton ID="TestButton" runat="server" CommandName="Test" >Test</asp:LinkButton>
<br />
</CommandItemTemplate>
C#
protected void RadGrid2_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Test")
{
string scriptstring = "radalert('Welcome to Rad<b>window</b>!', 330, 210);";
ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);
}
}