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
6 Answers, 1 is accepted

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,
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.
Svetlina Anati
the Telerik team

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
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


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