content not showing in radwindow

3 posts, 1 answers
  1. Toad
    Toad avatar
    4 posts
    Member since:
    Oct 2011

    Posted 09 Feb 2012 Link to this post

    i am using radwindow in user control which should open on click of button, if i use opernerElementID it does not open, if i use javascript
    it does not show the controls which are to be inside rad window here is code

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridColumnSelector.ascx.cs" Inherits="GCSTestApplication.Controls.GridColumnSelector" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <script type="text/javascript">
        function showWin() {
     
            var rwManager = $find("<%= rWindow.ClientID %>");
            rwManager.show();
            return false;
        }
    </script>
    <telerik:RadButton ID="btnShowMenu" OnClientClicked="showWin" AutoPostBack="false" runat="server" Text="Show ">
    </telerik:RadButton>
     
    <telerik:RadWindowManager Behaviors="Close"  ID="rwm" runat="server">
    <Windows>
    <telerik:RadWindow ID="rWindow" ClientIDMode="Static" Title="Save layout" runat="server" Modal="true" Height="200" Width="400">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server" Text="Show some text" />
        </ContentTemplate>
    </telerik:RadWindow>
    </Windows>
    </telerik:RadWindowManager>
    please help me
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Feb 2012 Link to this post

    Hello,

    This is the expected behavior when you are setting ClientIDMode as Static. Check the following forum thread which discussed similar scenario.
    Changing window clientidmode to static causes JavaScript error

    Thanks,
    Princy.
  3. Toad
    Toad avatar
    4 posts
    Member since:
    Oct 2011

    Posted 09 Feb 2012 Link to this post

    Thank you. u did solve my problem
Back to Top