This is a migrated thread and some comments may be shown as answers.

Rad Alert in Rad Window

1 Answer 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 2
Jim asked on 04 Sep 2008, 06:18 PM
I'm trying to popup a rad alert from withing a rad window, if a database call returns no records.  I've tried 

string

strMessage = "Sys.Application.add_load({radalert('Employee ID does not exist in the database.');})";

RadAjaxManager2.ResponseScripts.Add(strMessage);

and

string

strMessage = "radalert('Employee ID does not exist in the database.');";

RadAjaxManager2.ResponseScripts.Add(strMessage);

The first throws an error about a missing ':', the second throws and error cannot find radwindowmanager undefined. 

Both of the lines work in the parent page, can't figure out why they will not work in the rad window. 

Rad window contains it's own radscriptmanager, radajaxmanager and radwindowmanager.

Thanks
Jim

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Sep 2008, 10:18 AM
Hello Jim,

The correct syntax for adding functions in Sys.Application.Load is
"Sys.Application.add_load(function{radalert('Employee ID does not exist in the database.');})";

As for the second approach it should work, but without having a better view over your exact setup, I cannot tell where the reason for the problem might be. If you still experience problems, please open a support ticket and send me a sample project that shows your setup - I will check it and get back to you.



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Jim
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or