I am having trouble getting radalert to fire the first time when following the example posted here:
http://www.telerik.com/support/kb/aspnet-ajax/window/calling-radalert-from-codebehind-all-versions-of-radwindow.aspx
I am using the last example:
3. Calling radalert on RadAjax callback: You can use the ResponseScripts collection of RadAjaxManager for this purpose:
Here's my button codebehind:
The radalert only pops up the second time I click on the OK button...
I know in the KB article the last post suggests using the RegisterStartupScript method of the ScriptManager to resolve the issue of the radalert not firing the first time, but I can not do this as I have a RadScriptManager on my page and you can not have both a RadScriptManager and a ScriptManager on the same page (http://telerikwatch.com/2008/05/optimization-tips-using.html).
http://www.telerik.com/support/kb/aspnet-ajax/window/calling-radalert-from-codebehind-all-versions-of-radwindow.aspx
I am using the last example:
3. Calling radalert on RadAjax callback: You can use the ResponseScripts collection of RadAjaxManager for this purpose:
Here's my button codebehind:
protected void uxOkButton_Click(object sender, EventArgs e)
{
uxAjaxManager.ResponseScripts.Add(
"(function(){var f = function(){radalert('Please select criteria.',300,100,'Search');Sys.Application.remove_load(f);};Sys.Application.add_load(f);})()");
}
The radalert only pops up the second time I click on the OK button...
I know in the KB article the last post suggests using the RegisterStartupScript method of the ScriptManager to resolve the issue of the radalert not firing the first time, but I can not do this as I have a RadScriptManager on my page and you can not have both a RadScriptManager and a ScriptManager on the same page (http://telerikwatch.com/2008/05/optimization-tips-using.html).