Hi how would i open a new window from an existing open window i have the following code but all i get is an ie8 popup message box and the windows doesnt open
| RadWindow newwindow = new RadWindow(); | |
| newwindow.ID = "RadWindow10"; | |
| newwindow.Width = 800; | |
| newwindow.Height = 600; | |
| newwindow.NavigateUrl = "Repair.aspx?Propref=" + property.PROPREF; | |
| newwindow.VisibleOnPageLoad = true; | |
| newwindow.Skin = "WebBlue"; | |
| RadWindowManager1.Windows.Add(newwindow); |
| <asp:Button ID="btnRepairs" runat="server" Text="Book Repair" onclick="btnRepairs_click" /> |
6 Answers, 1 is accepted
0
Hi Kevin,
The code that you posted is OK and the RadWindow should be displayed after a postback. Could you please post here the rest of your page's code?
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The code that you posted is OK and the RadWindow should be displayed after a postback. Could you please post here the rest of your page's code?
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Just a quick follow-up:
Try adding the RadWindow in the Controls collection of the RadWindowManager as well.
e.g.
Sincerely yours,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Try adding the RadWindow in the Controls collection of the RadWindowManager as well.
e.g.
| RadWindow newwindow = new RadWindow(); |
| newwindow.ID = "RadWindow10"; |
| newwindow.Width = 800; |
| newwindow.Height = 600; |
| newwindow.NavigateUrl = "Repair.aspx?Propref=" + property.PROPREF; |
| newwindow.VisibleOnPageLoad = true; |
| newwindow.Skin = "WebBlue"; |
| RadWindowManager1.Windows.Add(newwindow); |
| RadWindowManager1.Controls.Add(newwindow); |
Sincerely yours,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kevin
Top achievements
Rank 1
answered on 03 Jun 2009, 02:01 PM
i have added that code but now im getting an access denied when i try to run the button that calls the code also can i acctually call a new window from an open one?
0
Hi Kevin,
In such case, please open a support ticket and send me your project so I could check it. Thank you in advance for your cooperation.
As for your last question, yes, this is possible by using the client-side API - check the following help article for more details:
http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
In such case, please open a support ticket and send me your project so I could check it. Thank you in advance for your cooperation.
As for your last question, yes, this is possible by using the client-side API - check the following help article for more details:
http://www.telerik.com/help/aspnet-ajax/window_programmingopeningfromwithin.html
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kevin
Top achievements
Rank 1
answered on 04 Jun 2009, 08:44 AM
Hi Georgi
thank you for your reply it has been very helpful one final question can this be done server side as we are currently calling the new window server side?
Many thanks
thank you for your reply it has been very helpful one final question can this be done server side as we are currently calling the new window server side?
Many thanks
0
Hello Kevin,
If you want to open the second RadWindow on the parent page (as shown in the help article that I posted earlier), you could do that only on the client - the content and parent pages are two separate documents and you cannot access one from another on the server.
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
If you want to open the second RadWindow on the parent page (as shown in the help article that I posted earlier), you could do that only on the client - the content and parent pages are two separate documents and you cannot access one from another on the server.
Greetings,
Georgi Tunev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.