This is a migrated thread and some comments may be shown as answers.

Mutiple Instances Of RadWindow

8 Answers 410 Views
Window
This is a migrated thread and some comments may be shown as answers.
Vinodh Kumar
Top achievements
Rank 1
Vinodh Kumar asked on 26 Jul 2010, 02:44 PM
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

8 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 26 Jul 2010, 03:15 PM
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.
0
Vinodh Kumar
Top achievements
Rank 1
answered on 26 Jul 2010, 03:27 PM
Hi 

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

 
0
Petio Petkov
Telerik team
answered on 26 Jul 2010, 03:44 PM
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
0
Mandy
Top achievements
Rank 2
answered on 08 Jan 2011, 09:04 AM
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,
0
Georgi Tunev
Telerik team
answered on 12 Jan 2011, 06:34 AM
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.
0
Mandy
Top achievements
Rank 2
answered on 17 Jan 2011, 09:01 AM
Hello admin ,

Thanks for reply finally i got solution,
0
Dhamodharan
Top achievements
Rank 1
answered on 01 Dec 2014, 10:58 AM
HI,
    I want to open multiple instance of single radwindow.  Please suggest your solution.

Thanks
0
Marin Bratanov
Telerik team
answered on 01 Dec 2014, 02:21 PM

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.

 
Tags
Window
Asked by
Vinodh Kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vinodh Kumar
Top achievements
Rank 1
Petio Petkov
Telerik team
Mandy
Top achievements
Rank 2
Georgi Tunev
Telerik team
Dhamodharan
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or