Can not open RadWindow with ContentTemplate

11 posts, 1 answers
  1. Mayank Srivastava
    Mayank Srivastava avatar
    5 posts
    Member since:
    Sep 2009

    Posted 23 Feb 2010 Link to this post

    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.

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Feb 2010 Link to this post

    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.
  5. Brandon
    Brandon avatar
    16 posts
    Member since:
    May 2009

    Posted 04 Jul 2010 Link to this post

    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!
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 Jul 2010 Link to this post

    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
  7. Eric
    Eric avatar
    19 posts
    Member since:
    May 2009

    Posted 30 Nov 2010 Link to this post

    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
  8. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Dec 2010 Link to this post

    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.
  9. Andy
    Andy avatar
    54 posts
    Member since:
    Jun 2009

    Posted 17 May 2011 Link to this post

    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
  10. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 17 May 2011 Link to this post

    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.

  11. v
    v avatar
    2 posts
    Member since:
    Aug 2011

    Posted 02 Aug 2011 Link to this post

    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
  12. v
    v avatar
    2 posts
    Member since:
    Aug 2011

    Posted 02 Aug 2011 Link to this post

    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!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017