Mutiple Instances Of RadWindow

9 posts, 1 answers
  1. Vinodh Kumar
    Vinodh Kumar avatar
    8 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2010 Link to this post

    Hi ,
            Is it possible to open multiple Rad Windows by click the cells in Rad Grid.  ( Something like Multiple Instances of RadWindow).
    please send us some sample regarding this.


    Thanks
    Vinodh
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Jul 2010 Link to this post

    Hello Vinodh,


    You can create new window with same url using radopen() method.

    aspx:
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnRowClick="OnRowClick"  />
        </ClientSettings>
    </telerik:RadGrid>
    <telerik:RadWindowManager ID="id1" runat="server">
    </telerik:RadWindowManager>


    client code:
    function OnRowClick(sender, args) {
        window.radopen("url", ""); // set same url
    }



    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vinodh Kumar
    Vinodh Kumar avatar
    8 posts
    Member since:
    Jun 2010

    Posted 26 Jul 2010 Link to this post

    Hi 

    Thanks for the Quick Response .What we need is Multiple Windows Opened in the browser. Kindly see the attached Picture for references.
    Thanks

     
  5. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 26 Jul 2010 Link to this post

    Hi Vinodh Kumar,

    A simple example which illustrates how to open RadWindow when you click RadGrid's row is available here:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
    You can open a RadWindow on the client via the radopen client-side method. You can find more about it in the following help article:
    http://www.telerik.com/help/aspnet-ajax/window_programmingopening.html
    The code below illustrates how to open more than a one RadWindows once a button is clicked
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <head id="Head1" runat="server">
        <script type="text/javascript">
            function OpenTwoWindows()
            {
                var oWnd1 = radopen("http://www.google.com");
                oWnd1.set_title("Window1");
                var oWnd2 = radopen("http://www.microsoft.com");
                oWnd2.set_title("Window2");
            }
        </script>
    </head>
    <body class="BODY">
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            </telerik:RadWindowManager>
            <input type="button" value="OpenTwoWindows" onclick="OpenTwoWindows()" />
      
        </div>
        </form>
    </body>
    </html>
    Let us know if you have any other questions.


    Regards,
    Petio Petkov
    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
  6. Mandy
    Mandy avatar
    33 posts
    Member since:
    Mar 2010

    Posted 08 Jan 2011 Link to this post

    Hello admin ,

    Please provide us a way to open multiple instance of single radwindow ,

    I would like to open my radgrid data each time i double click on a row and i.e. not alter the existing opened radwindow,
    Instead i would like to open another instance of that same radWindow ,

    Like in outlook we can open multiple email on double click, without effecting already opened Email,


    Please reply ASAP,
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Jan 2011 Link to this post

    Hi Mandeep,

    Basically, the radopen() function accepts 2 parameters - Url and RadWindow's name. When the name is null, radopen() will always create a new window, each time it is called.
    For more information, please check the help articles that were suggested earlier.



    Best wishes,
    Georgi Tunev
    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.
  8. Mandy
    Mandy avatar
    33 posts
    Member since:
    Mar 2010

    Posted 17 Jan 2011 Link to this post

    Hello admin ,

    Thanks for reply finally i got solution,
  9. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 01 Dec 2014 in reply to Mandy Link to this post

    HI,
        I want to open multiple instance of single radwindow.  Please suggest your solution.

    Thanks
  10. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 01 Dec 2014 Link to this post

    Hello Dhamodharan,

    You cannot open several instance of the same RadWindow. What you can do is to

    1. Generate a brand new instance by passing null for the window name: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html.
    2. Use the same URL to load the same content page
    3. Set up the desired properties via the control's client-side API (e.g., set_modal(), setSize(width, height): http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html.



    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017