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

[Solved] RadWindow Accross different pages

14 Answers 261 Views
Window
This is a migrated thread and some comments may be shown as answers.
Elton
Top achievements
Rank 1
Elton asked on 23 Oct 2007, 04:11 AM
Hello there,
I am gonna use a framesets which contains multiple aspx pages. And from one of them I popup a Radwindow. By default that windwo is restricted in the page which creates it.
Is there some way that I can make the Radwindwo move across all pages in frameset?

Cheers,
Elton

14 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Oct 2007, 06:30 AM
Hello Elton,

This is possible if you set the RadWindowManager in the frameset page. I've attached to this thread a small sample that shows how to do this.




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Elton
Top achievements
Rank 1
answered on 23 Oct 2007, 12:05 PM
Thnk u for the exampleGeorgi,

I just tried the exmple but it doesn't work for me. I got some javascript error. I noticed there is no scriptmanager before the Radwindowmanager in the Frameset.aspx. So I change the code like this:


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrameSet.aspx.cs" Inherits="FrameSet" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>FrameSet</title>
</head>
    <form id="form1" runat="server">
        <asp:scriptmanager runat="server"></asp:scriptmanager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    <div>
   
    </div>
    </form>
      <frameset border="0" cols="200,*" frameborder="0">
        <frame name="contents" src="Frame1.aspx">
        <frame name="main" src="Frame2.aspx">
    </frameset>
</html>


Is there anything wrong ?


Regards,

Elton
RadWindowManager

0
Elton
Top achievements
Rank 1
answered on 24 Oct 2007, 02:55 AM
Ok It is working for me, once I changed it to the radwindowmanagr in  aps.net Q2 rahter than "Prometheus".

Is there some way woring with radwindow  in "Prometheus"? Coz I notice the Q2 one is really slow when generating...

Cheers,
Elton 
0
Elton
Top achievements
Rank 1
answered on 25 Oct 2007, 12:36 AM
Hello Again,

I got another issue which is radopen is not working for Firefox, Safari. It just works on IE.

I tried the Frameset.zip example and nothing popup. And I got the error from the error console of Firefox.

Cheers,
Elton
0
Georgi Tunev
Telerik team
answered on 25 Oct 2007, 03:41 PM
Hi Elton,

First of all I would like to apologize for sending you the frameset example for RadWindow for ASP.NET - I missed the fact that you are using the Prometheus version.
Unfortunately at this point, RadWindow Prometheus cannot be used in such scenario. Generally speaking, you should not use any other controls in a frameset page - only the frameset itself. RadWindow for ASP.NET works as expected when put in a frameset page, however all RadControls Prometheus are build with ASP.NET AJAX code which does not allow this scenario. We will try to find a workaround and implement it in our code but for now the only way to achieve the desired behavior is to use RadWindow for ASP.NET.


As for the second problem, can you please provide more details on it? What exactly is your setup and what is the behavior that you experience?



All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Elton
Top achievements
Rank 1
answered on 26 Oct 2007, 12:30 AM
Georgi,
Can you just test that example you give me in either Firefox or Safari. Once I click the "Open window" button, nothing happens. I checked the error console of Firefox, error message says radopen can be reconized...

Cheers,
Elton
0
Elton
Top achievements
Rank 1
answered on 28 Oct 2007, 10:33 PM
Sorry guys,

Can you check the example you provided (Frameset.zip) in Firefox or Safari? you will see the problem.

Thanx,
Elton
0
Elton
Top achievements
Rank 1
answered on 30 Oct 2007, 02:44 AM

By the way ,
Is there sth to do with Vista? Coz I m currently working with Windows Vista...

 

 

0
Georgi Tunev
Telerik team
answered on 30 Oct 2007, 01:14 PM
Hello Elton,

The reason why the solution (as provided) is not working is because in general you should not have anything else in the FRAMESET page except the FRAMESET. The FRAMESET element is a container for the FRAME element and HTML document can contain either the FRAMESET element or the BODY element, but not both. More information on FRAMESET is available in MSDN: http://msdn2.microsoft.com/en-us/library/ms535251.aspx.

Indeed, IE6 allow such invalid HTML, however Firefox and other browsers are more strict in this matter and do not recognize the additionally added content in the FRAMESET. The only way to achieve the desired behavior is to put the FRAMESET itself in an IFRAME on a separate page. For convenience, I've attached to this thread a small modification of the project that shows this approach. Note the XHTML doctype that is used on the Frameset page and the styles used - they are needed for the IFRAME to fill the whole page under Firefox.




All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Georgi Tunev
Telerik team
answered on 30 Oct 2007, 01:20 PM
Hello Elton,

Just a quick follow-up. Here is another way to make the IFRAME occupy the whole page. You can use either this approach or the other one shown in the example.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html> 
<head> 
    <title>FrameSet Holder</title> 
    <script type="text/javascript">  
    window.onload = function()  
    {  
        var iframeHeight = document.documentElement.offsetHeight;  
        var iframeWidth = document.documentElement.offsetWidth;  
        document.getElementById('Iframe1').style.height = iframeHeight + 'px';  
        document.getElementById('Iframe1').style.width = iframeWidth + 'px';  
        alert('html height: ' + iframeHeight + '; html width: ' + iframeWidth);  
    }  
    </script> 
    <style type="text/css">  
    html, body, form  
    {  
        padding: 0;  
        margin: 0;  
        height: 100%;  
    }  
    </style> 
</head> 
<body> 
    <form id="Form1" action="" method="post">  
        <iframe id="Iframe1" src="" width="100%" height="100%" frameborder="0"></iframe>      
    </form> 
</body> 
</html> 





Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Elton
Top achievements
Rank 1
answered on 30 Oct 2007, 11:12 PM
Excellent Geogi,

That's working now.

Hei, just a side question~ how do u have that idea of about the restriction of firefox and safari? and follows the iframe?
nice thinking !
0
Georgi Tunev
Telerik team
answered on 31 Oct 2007, 09:30 AM
I am glad to know that this approach worked for you, Elton :)

As for your question, we have a lot of experience with IFRAMES (as you may know RadWindow is built on an IFRAME and it behaves like one) and using a wrapping IFRAME is a commonly used approach for some scenarios with RadWindow. 




Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 14 May 2008, 01:33 PM
Hi Georgi

With Frame can we now use the ajax verison of teh controls vs the old radcontrols.

We have pretty much ported all of our controls to the new framewrok which work grat and the only outstanding control in the radwindow ?


thx

Andrei

0
Georgi Tunev
Telerik team
answered on 14 May 2008, 02:18 PM
Hello Andrei,


When using RadWindow for ASP.NET AJAX, the only way to use RadWindow over frameset is to use a wrapping IFRAME as in the last posted example.


Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Elton
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Elton
Top achievements
Rank 1
Paul
Top achievements
Rank 1
Share this question
or