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

[Solved] Loading RadAlert in codeBehind produce Javascript problem

3 Answers 255 Views
Window
This is a migrated thread and some comments may be shown as answers.
Haderach
Top achievements
Rank 1
Haderach asked on 04 Oct 2007, 08:08 AM
Hello,

I've try RadWindow Prometheus and I have problem with radAlert.
On a linkbutton click event, I have this part of code which was working before (Classic RadWindow) :

Telerik.Web.UI.RadAjaxManager Manager = (Telerik.Web.UI.RadAjaxManager)Page.Master.FindControl("RadAjaxManager1");  
Manager.ResponseScripts.Add("radalert('" + message + "', 300, 200, 'Information');"); 

Now I have 2 javascript error :
-First : Object required
- Second : Two component with the id 'alert' ....

Do you have any idea about that?

Is the way to load radAlert in codeBehind has changed with prometheus?

Keep me posted

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Oct 2007, 09:59 AM
Hi Haderach,

Generally speaking, with the "Prometheus" version, you may need to set a small timeout (actually a 0ms timeout should do the trick as well) which is needed for the radalert function to "find" the RadWindowManager on the page:

RadAjaxManager1.ResponseScripts.Add("window.setTimeout(function(){radalert('Welcome to Radwindow!', 330, 210,'Hello');}, 0);")

As for the second problem, we will need some more information - please open a support ticket and send us a small sample project that reproduces the problem. This way we can work directly on your code and provide the most appropriate solution.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Haderach
Top achievements
Rank 1
answered on 04 Oct 2007, 11:20 AM
Ok, I have just posted a new support ticket...

None of the both is solved by the trick you gave me....

I waiting for your answer on my Support ticket,

Thank for your time.
0
Georgi Tunev
Telerik team
answered on 04 Oct 2007, 03:30 PM
Thank you Haderach,

We will check it and get back to you as soon as possible.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Haderach
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Haderach
Top achievements
Rank 1
Share this question
or