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

Radwindow and URL Rewriter.net

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
mac
Top achievements
Rank 1
mac asked on 27 Oct 2010, 04:57 AM
hi. I am trying to use the url rewriter.net module and it works fine. However when I try to use my radwindow / radwindow manager it essentially tries to load the parent page into the popup. Weird. As soon as i disable the rewriter in the config the functionality is exactly as expected. Any thoughts on how to fix this issue?

code: 
   <script type="text/javascript">
        function OpenPositionedWindow(oButton, url, windowName)
        {
            var oWnd = window.radopen(url,windowName);
        }
    function openRadWindow(CustomerID)
        {
            var oWnd = radopen("ImageManager.aspx?PageID=" + CustomerID, "RadWindow1" );
            oWnd.center();
        }
        </script>

 

 

<telerik:RadWindowManager ReloadOnShow="true" ShowContentDuringLoad="false" AutoSize="true"

 

 

 

EnableShadow="true" ID="RadWindowManager1"

 

 

 

Width="900px" Height="200px" runat="server">

 

 

 

</telerik:RadWindowManager>

 

 

<a href="#"

 

 

 

onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "PageID") %>'); return false;">Image Manager </a>

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Oct 2010, 11:15 AM
Hi Mac,


I don't know how you have configured the rewriter, but I am not sure if the problem is related to the RadWindow control. Try using a standard IFRAME instead and see how it will behave.
For example:

<form id="form1" runat="server">
<asp:ScriptManager ID="sm1" runat="server">
</asp:ScriptManager>
<script type="text/javascript">
 
    function openRadWindow(CustomerID)
    {
        //var oWnd = radopen("ImageManager.aspx?PageID=" + CustomerID, "RadWindow1");
        //oWnd.center();
        var myframe = $get("myframe");
        myframe.src = "ImageManager.aspx?PageID=" + CustomerID;
    }
</script>
<iframe id="myframe"></iframe>
<a href="javascript:void(0);" onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "PageID") %>'); return false;">
    Image Manager </a>
</form>

If the problem persists when using and IFRAME, you need to configure the rewriter accordingly. If the problem exists only when a RadWindow is used, please open a support ticket and send us a sample project where we could reproduce the problem and examine your setup closely.


Best wishes,
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
Tags
Window
Asked by
mac
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or