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

Can not open RadWindow with ContentTemplate

10 Answers 319 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mayank Srivastava
Top achievements
Rank 1
Mayank Srivastava asked on 24 Feb 2010, 01:49 AM

Hi,

Here’s the code:

 

<div>

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="true" >

        <Windows>

            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close,Minimize,Move,Resize,Maximize" Modal="true" Skin="Office2007" Title="NewPage" >

                <ContentTemplate> 

                    Here's the text for Modal window!

                </ContentTemplate>                

            </telerik:RadWindow>

        </Windows>

    </telerik:RadWindowManager>

    <br />

    <input type="button" value="click Here" onclick="openRadWindow();" />

    <script type="text/javascript">

 

        function openRadWindow() {

 

            var rwManager = $find("<%= RadWindowManager1.ClientID %>");

            var rwindow = rwManager.Open("", "RadWindow1");

            rwindow.center();

            return false;

        }

    </script>

</div>


I’m using $find() to grab the Window Manager as this section is in a user control and the container page also has a RadWindowManager.

When I click on the button, the RadWindow shows up including the title but -  anything inside the Content template does not show in the window.

Am I missing something?

 

Also, I wonder if the content template is specific to Q3-2009 release as we haven’t updated to that version yet.

 

Any help pointer will be great appreciated.

10 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Feb 2010, 09:43 AM
Hello Mayank,

Your code works as expected in my end. I am using RadControls version 2009, 3, 1314, 35. Can upgrade to latest version of RadControls and see whether it is working fine?

The following link will help you in upgrading to latest version:
Updating RadControls for ASP.NET to another version

Regards,
Shinu.
0
Accepted
Georgi Tunev
Telerik team
answered on 24 Feb 2010, 11:09 AM
Hi Mayank,

The content template feature was introduced in Q3 2009, so if you are using that version, you should not experience problems. I believe that the reason for such problem is in the exact setup that you have, but without having a better view over your logic, I cannot be sure. Please open a support ticket and send a small sample project that reproduces your setup and the problem itself - I will check it and get back to you right away.


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.
0
Brandon
Top achievements
Rank 2
answered on 04 Jul 2010, 09:48 AM
I'm having the same problem. I'm using version 2009.3.1208.35 running against v4.0 of .net. The window opens just fine, but doesn't display any content.

My code is pretty much exactly the same as the other bloke's:

function OpenAddUserWindow() { 
            var rwManager = $find("<%= WindowManager.ClientID %>"); 
 
            var rwindow = rwManager.Open("""<%=AddUserWindow.ClientID %>"); 
            rwindow.center(); 
 
            return false
        } 
 
Any ideas?

Thanks!
0
Georgi Tunev
Telerik team
answered on 07 Jul 2010, 11:25 AM
Hi Brandon,

The code looks OK so at this point I cannot tell what the reason for the problem might be. Could you please open a support ticket and send me a small sample project that reproduces this behavior? I will check it and get back to you right away.


Regards,
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
0
Eric
Top achievements
Rank 2
answered on 30 Nov 2010, 05:17 PM
Hi Brandon, did you figure out what the problem was? I'm experiencing the same issue. I'm using Telerik ASP.NET AJAX v4.0.30319.

Thx
0
Georgi Tunev
Telerik team
answered on 02 Dec 2010, 03:09 PM
Hello Eric,

We didn't receive a project then, so I cannot tell what was the problem. I suggest to open a support ticket and send us a project that isolates the problem (this blog post might be of help in such task). We will check it right away.


Regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Andy
Top achievements
Rank 1
answered on 17 May 2011, 11:29 AM
Hello!
I have the similar problem. If it's just text content inside ContentTemplate, radWindow seems to assume that external content should be used, because it renders iframe. If I place some asp control inside ContentTemplate (asp:button for example), it works correctly.
The version I use is 2010.3.1109.35
0
Marin Bratanov
Telerik team
answered on 17 May 2011, 01:01 PM

Hello Eric,

I am not able to reproduce this behavior with your version (or with the latest). You can find my test page and a screenshot showing the rendered HTML  attached.

Does this issue happen only under certain browsers or browser versions? If you upgrade to the latest version can you still reproduce it?

So far we have not been able to see this behavior, so please open a support ticket and send us a sample project that displays it so we can examine it on our end.

For the time being if the issue persists you could add, for example, a hidden field in the content template, or add the text as a literal control or label if this works for you. Please accept my apologies for any inconvenience caused.



Kind regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
v
Top achievements
Rank 1
answered on 02 Aug 2011, 02:17 PM
Hi,
I'm having the same problem. I've pasted the code from your zip file onto my page and it creates an iframe not a div.
I cannot get any text or asp.net controls into the window.

I've tried using version 2010.3.1109.35 and 3.1105

Cheers,
Vicki
0
v
Top achievements
Rank 1
answered on 02 Aug 2011, 04:48 PM
Apologies, I was looking at the wrong reference to the dll. It was actually 2008.
I've now got it working with a newer version of the dll.

Cheers!
Tags
Window
Asked by
Mayank Srivastava
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Brandon
Top achievements
Rank 2
Eric
Top achievements
Rank 2
Andy
Top achievements
Rank 1
Marin Bratanov
Telerik team
v
Top achievements
Rank 1
Share this question
or