i am using RadWindow in my Portal and i have few text box on my Radwindow and one Image Button..... i want to know that how to Close my Radwindow and Redirect page to parent page when i click on Image button which is on Radwindow ..can any one help me???
5 Answers, 1 is accepted
Try the following.
In case you have used the approach with a ContentTemplate as Shinu has used and your user control is inside that template you can use the very same code. As to adding the parameter, you can pass it as a query string value in a similar manner to that:
In case you are using a NavigateUrl and you have a separate page, you should execute a script from the server to change the top of the frame tree or you should use frame buster script code in the page you redirect to. A frame buster script which will work is the following one:
In case you need further assistance, please provide more details of your setup and best - a simple reproduction demo (no need for complex custom logic, only the RadWindow setup/configuration.main/content page and a button) along with detailed explanations and we will help you achieve what you need.
the Telerik team
Thanks for your Reply
i m using Ascx page as my master page Design and Coding
and i call Radwindow on page_Load Event.. My Button is on ASPX page so what i need to do is when i Press button in my ASPX page.... the Radwindow should close and my ASCX page should load again here is my coding for ASPX Page and one more functionality i want to add is when my Radwindow is opened on the parent page should be freeze or i can say user cannot click on scroll parent page
Generally ASCX files are not served, as they are user controls and can exist only as a part of an aspx page. This means that you cannot redirect directly to a user control, but to a page that contains it. How to do this was explained in the previous reply.
As for blocking the page behind the RadWindow - you can simply use its Modal property and set it to true.
I can also suggest that you examine this thread on opening the RadWindow from the server.
All the best,
the Telerik team