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

Redirection from a Telerik Rad Window

2 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Thierry Baertschiger
Top achievements
Rank 1
Thierry Baertschiger asked on 22 Mar 2010, 05:58 PM

In an asp.net web application, I have a modal popup built with a Telerik Rad Window. In that popup there is a button which must do some action in its "code-behind" and then redirect the application to another page.

For the redirection I use the javascript command 'top.document.location.href = myPage' (sent to the browser from the code-behind with a ScriptManager.RegisterClientScriptBlock(...)).

This solves my problem but it is not very nice. When the button is pressed, this triggers the post-back. In the browser the popup is covered by a RadLoadingPanel which disappears when the post-back is finished (I use a RadAjaxManager). Then during a few seconds, nothing happens in the application and it is only after some time that the browser loads the new page.

The fact that nothing happens during a few second is not great since a user cannot know what the application is doing.

What can I do ? Is there a better way to do the redirection ? (I'm very new to javascript programming...).


2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 24 Mar 2010, 10:41 AM
Hello Thierry,

RadAjaxLoadingPanel has a MinDisplayTime property that sets how long the loading panel will be shown. Try setting it to a high value - 5 / 10 seconds.


All the best,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Thierry Baertschiger
Top achievements
Rank 1
answered on 24 Mar 2010, 12:06 PM
That could be a solution. But the problem is that when the button is pressed, some validation is performed server side. If the validation is successful, then the redirection is made. If not, the popup must remain open.

So I cannot just increase the MinDisplayTime since it will create a problem when validation fails (loading panel still displayed when the popup shows validation errors and should let the user corrects his/her errors).

For the moment I am trying to show the loading panel explicitly. This works a least in a little proof-of-concept project I have created.
Tags
General Discussions
Asked by
Thierry Baertschiger
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Thierry Baertschiger
Top achievements
Rank 1
Share this question
or