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

Can a RadWindow be idsabled/hidden if necessary

1 Answer 51 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 12 Feb 2010, 08:11 PM
Hi:

We have a RadWindow in our application that does some very sophisticated logic in the code behind. Generally we need to use the RadWindow to obtain certain preliminary information before we can invoke this logic.

But now we've come up with a situation where we want to invoke the logic directly without actually showing the RadWindow. The logic will ultimately open yet another window (to display a Word document) and, in this situation, the 'Word Document' window is the only window that we want to see.

Is there a way to do this using the code in the Radwindow code-behind?

Thanks for your suggestions.  

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 17 Feb 2010, 10:42 AM
Hi Dan,

Basically, you can hide a RadWindow by referencing its client object and calling its method close(). This should be done by using script and since you need to do it from the server you can execute the script from there as explained in the article below:

http://blogs.telerik.com/blogs/posts/09-05-05/executing_javascript_function_from_server-side_code.aspx


All the best,
Svetlina
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.
Tags
Window
Asked by
Dan
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
Share this question
or