This is a migrated thread and some comments may be shown as answers.
RADALERT
6 Answers 82 Views
This is a migrated thread and some comments may be shown as answers.
SANNIDHI
Top achievements
Rank 1
SANNIDHI asked on 06 Jan 2012, 02:31 PM
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

6 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 06 Jan 2012, 05:28 PM
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,
0
Svetlina Anati
Telerik team
answered on 06 Jan 2012, 06:12 PM
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
0
SANNIDHI
Top achievements
Rank 1
answered on 09 Jan 2012, 05:45 AM

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

0
Marin Bratanov
Telerik team
answered on 09 Jan 2012, 10:53 AM
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
0
SANNIDHI
Top achievements
Rank 1
answered on 09 Jan 2012, 11:19 AM
with that also i am unable to find ..radalert()
0
Richard
Top achievements
Rank 1
answered on 09 Jan 2012, 06:42 PM
SANNIDHI:

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

Regards,
Asked by
SANNIDHI
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Svetlina Anati
Telerik team
SANNIDHI
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or