How to open RadWindow witout any postback (Need Urgently)

1 posts, 0 answers
  1. Manish
    Manish avatar
    64 posts
    Member since:
    Jul 2011

    Posted 18 Oct 2011 Link to this post

    Hi

    This code is not working

    <script type="text/javascript">
        /* Using radopen */
        function ShowExisting1() {
            //Show an existing window
            window.radopen(null, "RadWindow1");
            //First argument is the URL. Since no url is provided, the NavigateUrl property set on the server will be used.
        }
        /* Using RadWindowManager.open */
        function ShowExisting2() {
            //Call existing global function to obtain a reference to the window manager
            var oManager = GetRadWindowManager();
            //Show a particular existing window
            oManager.open(null, "RadWindow2");
        }
        // using RadWindow.show
        function ShowExisting3() {
            var oWnd = $find("RadWindow1");
            oWnd.show();
        }
        /* Show new window */
        function ShowNewWindow() {
            //Show new window
            //not providing a name as a second parameter
            // creates a new window
            var oWindow = window.radopen("http://www.google.com", null);
            //Using the reference to the window its clientside methods can be called
            oWindow.setSize(400, 400);
        }
    </script>
        <form id="form1" runat="server">
        <div>
        <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
          <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="http://www.google.com">
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2" runat="server" NavigateUrl="http://www.telerik.com">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
           
    the client-side code for opening windows

            <button onclick="ShowExisting1();return false;" class="Button" style="width: 190px" id="btnclick" runat="server">
        Show window (using radopen)</button>
    call the various client-side functions

    <br>
    <button onclick="ShowExisting2();return false;" class="Button" style="width: 190px" >
        Show window (using open)</button>
    <br>
    <button onclick="ShowExisting3();return false;" class="Button" style="width: 190px">
        Show window (using show)</button>
    <br>
    <button onclick="ShowNewWindow();return false;" class="Button" style="width: 190px">
        Show new window</button>
        </div>
        </form>


    Please provide some useful links.

    Thanks
    Manish
Back to Top