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

How to make it Modal before a redirect

3 Answers 158 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 16 Oct 2008, 01:44 PM
Hi..
I have the following code on a SAVE button.. but
the Rad Window never appears.
How do I make it modal before redirecting?
thanks!


 

this.RadAjaxManager.ResponseScripts.Add(@"Sys.Application.add_load(function()

 

{radalert('Information Added!', 250, 100);})"

 

);

 

 

// Redirect to Pending......

 

Response.Redirect(

"~/pages/Correspondence.aspx");

 

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 16 Oct 2008, 02:01 PM
Hi Jon Elster,

I believe that the following forum thread will be of help:
http://www.telerik.com/community/forums/thread/b311D-bkkbdb.aspx

Note that RadWindow's radalert, radprompt, radconfirm functions cannot block the execution thread and can exist only in the page from which they were created - that is why you don't see the alert dialog.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 16 Oct 2008, 04:15 PM
I'm not clear on what I have to do to make it appear modal.

What do I put in the template

I understand how the regular javascript alert works

Can you give me more info?
thanks
0
Georgi Tunev
Telerik team
answered on 20 Oct 2008, 10:17 AM
Hello Jon,

I prepared a small sample that shows the described approach. Note that radalert() cannot block the execution thread (this is something that cannot be done with JavaScript) and that is why you need to modify the alert template.


Sincerely yours,
Georgi Tunev
the Telerik team

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