rad window broken when post back

2 posts, 0 answers
  1. Ali
    Ali avatar
    21 posts
    Member since:
    Jan 2014

    Posted 24 Jan 2014 Link to this post

    hi
    i have a web application. in site master i have a rad window. i open in java script and i set negative url in default i have some rad button when i click them and open the rad window. rad window broken and don't show in right mode why

    please help me
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Jan 2014 in reply to Ali Link to this post

    Hi Ali,

    Please have a look into the sample code snippet which works fine at my end.

    Master Page:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

    JavaScript:
    <script type="text/javascript">
        function pageLoad() {
            var win = $find("<%=RadWindow1.ClientID %>");
            win.setUrl("2radwindow.aspx");
            win.Show();
        }
    </script>

    ASPX:
    <form id="form1" runat="server" dir="rtl">
        <div>
            <telerik:RadButton ID="RadButton1" runat="server" Text="OpenWindow"               OnClick="RadButton1_Click1">
            </telerik:RadButton>
            <telerik:RadWindow ID="RadWindow2" runat="server">
                <ContentTemplate>
                    RadWindow
                </ContentTemplate>
            </telerik:RadWindow>
        </div>
    </form>

    C#:
    protected void  RadButton1_Click1(object sender, EventArgs e)
    {
        RadWindow2.VisibleOnPageLoad=true;
    }

    Please provide your code if it doesn't help.
    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top