RadAlert, RadConfirm using RadWindowManager not working

5 posts, 1 answers
  1. Subhash
    Subhash avatar
    2 posts
    Member since:
    Nov 2011

    Posted 02 Dec 2011 Link to this post

    I am using the RadWindowManager in a ASP.NET 4.0 and VS 2010. I placed a RadWindowMangaer on a content page. In the code behind of the button click I want to call this.radWindowManager1.RadAlert(...); For some reason after hitting the period after radWindowManger1 I do not see any of the pre build rad windows (radAlert, radconfirm etc). Maybe it is a version issue. I am using 2010.3.1215.40. Please help. All other controls in the suite work just fine.



    @ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"




    CodeBehind="Default.aspx.cs" Inherits="TelerikRadWindowSample._Default" %>




    @ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>





    asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">










    asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">




    <telerik:RadWindowManager ID="radWindowManager1" runat="server"></telerik:RadWindowManager>






    Welcome to ASP.NET!







    <asp:Button ID="Button1" runat="server" Text="Open Rad Window"




    onclick="Button1_Click" />










    here is my code behind





    void Button1_Click(object sender, EventArgs e)





    // I dont see RadAlert





  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Dec 2011 Link to this post

    Hello Subhash,

    Try the following code.
    protected void Button1_Click1(object sender, EventArgs e)
      RadWindowManager1.RadAlert("RadAlert is called from the server", 330, 100, "Server RadAlert", "alertCallBackFn");
    function alertCallBackFn(arg)
        radalert("<strong>radalert</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");
    Also check the following demo.
    Window / Alert, Prompt, Confirm

  3. Answer
    Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 06 Dec 2011 Link to this post

    Hello guys,

    The server-side methods that call the predefined dialogs were added in Q1 2011 and are, therefore, not available in the previous versions (including the one in question - Q3 2010 SP1). This is also noted in the documentation, for example here.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  4. Prashant
    Prashant avatar
    2 posts
    Member since:
    Jul 2015

    Posted 20 Jul 2015 in reply to Marin Bratanov Link to this post

    this is a Javascript function:
    <script type="text/javascript">
            function callBackFn(arg) {

                return false;

    This is Code Behind Code:
    RadWindowManager1.RadAlert("Password Change Successfully", 300, 150, "TestQueue", "callBackFn","success.png");

    and i hav also used RadWindiwManager on aspx page still it is not showing RadAlert....

    Pleasae give me some solution asap....thnx in advance

    so it is not calling that javascript(callBackFn) from codebehind 

  5. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 23 Jul 2015 Link to this post

    Hello Prashant,

    The code below works properly on my side when the button is clicked:

    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <script type="text/javascript">
            function callBackFn(arg) {
                alert('alert from callback');
                return false;
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>
        <telerik:RadButton ID="RadButton1" runat="server" Text="Show RadAlert" OnClick="RadButton1_Click" />
    protected void RadButton1_Click(object sender, EventArgs e)
        RadWindowManager1.RadAlert("Password Change Successfully", 300, 150, "TestQueue", "callBackFn", "success.png");

    Are there any JavaScript errors on your page? If so they should be found and fixed.

    Danail Vasilev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top