1. SANNIDHI
    SANNIDHI avatar
    24 posts
    Member since:
    May 2009

    Posted 06 Jan 2012 Link to this post

    HI,

              I already have one .js file and in that i am calling window.alert() method to show errors.
     
              It is common throught my application..

             now ,in place of window.alert(),i want to use radalert().

             But in .js file we cannnot find radalert as a undefined....


              please give me the solution with high priority.......


    Thanks,
    PANDU
  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 06 Jan 2012 Link to this post

    Pandu:

    There is an online demo: "Window / Alert, Prompt, Confirm" at http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx that will guide you in calling your RadAlert using client-side Javascript.

    Let me know if you need further help!

    Regards,
  3. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 06 Jan 2012 Link to this post

    Hello SANNIDHI,

     
    Please make sure that the following conditions are fulfilled:

    1) You have a RadWindowManager control defined on the resultant page where you call the radalert script
    2) You call radalert method after the ajax Sys.Application.load event was fired (this is after onload and all MS AJAX client objects, not only RadControls, are created at this time which means that otherwise you will get a js error and no message will be displayed).

    If the above does not help, please provide sample, fully runnable reproduction code and we will check it out and fix it for you.

    Kind regards,
    Svetlina Anati
    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. SANNIDHI
    SANNIDHI avatar
    24 posts
    Member since:
    May 2009

    Posted 08 Jan 2012 Link to this post

    Hi,


              I am unable to find radalert() method.

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">

    </telerik:RadWindowManager>

    'Telerik.Web.UI.RadWindowManager' does not contain a definition for 'radAlert' and no extension method 'radAlert' accepting a first argument of type 'Telerik.Web.UI.RadWindowManager' could be found (are you missing a using directive or an assembly reference?)


          Please let me know the solution..

    Thaanks.
    PANDU

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5603 posts

    Posted 09 Jan 2012 Link to this post

    Hi Pandu,

    Since JavaScript is case-sensitive you need to use the correct casing for the RadAlert call - all small letters: radalert("your message here"). You can see the full syntax in this help article and this online demo.


    Kind regards,
    Marin
    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
  6. SANNIDHI
    SANNIDHI avatar
    24 posts
    Member since:
    May 2009

    Posted 09 Jan 2012 Link to this post

    with that also i am unable to find ..radalert()
  7. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 09 Jan 2012 Link to this post

    SANNIDHI:

    Please post your entire .aspx code page and I will have a closer look.

    Regards,
Back to Top