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

RadAlert() is not open properly on load event

2 Answers 99 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
bankey
Top achievements
Rank 1
bankey asked on 05 Sep 2008, 12:53 PM
Hi,


I have used the RadAjaxManager and RadWindowManager on the page but unable to open the popup in load event of the page.
in the load event i have assigned the property and attached the manager in load event like:

private RadAjaxManager Manager

{

get { return RadAjaxManager.GetCurrent(Page); }}


and on the load event

Manager.AjaxSettings.AddAjaxSetting(Manager, Manager);

string

script = "return radalert('HI.', 300, 50);";

Manager.ResponseScripts.Add(script);

In the same page i have create the buttonclick event, here is working properly, by attaching the button with the manager in load event. So, I am facing the problem when opening the radalert() in Page_Load() event.


I am looking for your kind support.

 
Thanks
Bankey Bihaari

2 Answers, 1 is accepted

Sort by
0
Kiara
Top achievements
Rank 1
answered on 08 Sep 2008, 12:24 PM
Bankey, does this work when you replace the radalert call with standard browser alert like this:

script = "return alert('HI.', 300, 50);";

Also I think that you should add the WindowManager control as updated control to the RadAjaxManager settings:

Manager.AjaxSettings.AddAjaxSetting(Manager, [YourWindowManager]);

Kiara
0
Jogn
Top achievements
Rank 1
answered on 06 Nov 2008, 01:26 PM
I have the same situation, simple alert is working but radalert is not , it seensed when we calll radlaert on pageload the radwindowmanager is not rendered yet. Plese can u give me example how open radalert directly on Page_load event. All Current examples i found are not working from pageload.
Tags
Ajax
Asked by
bankey
Top achievements
Rank 1
Answers by
Kiara
Top achievements
Rank 1
Jogn
Top achievements
Rank 1
Share this question
or