Drag and Drop objects between different windows

4 posts, 0 answers
  1. Michel Gauvin
    Michel Gauvin avatar
    2 posts
    Member since:
    Apr 2006

    Posted 03 Sep 2008 Link to this post

    Does anyone somewhere has ever done drag and drop objects from one window to other window in a browser?
    The context is: I have a list of icons representing modules in a floating non modal window which I can select one and drag drop into its parent window to create an instance of this module.
    I know that the selecting icon event should generate an event into its parent window to create an instance of the dragging object.
    But is it possible to pass the control of the mouse to the parent window?

    Or this king of functionality already exists in your controls!

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 04 Sep 2008 Link to this post

    Hello Maurice,

    When implementing such logic, you must have in mind that RadWindow's content page is a separate page, different from the main one.
    Our suggestion is to implement the desired behavior not by using initially RadWindow but a standard IFRAME (RadWindow itself is basically an IFRAME) - once you have your code working as expected, the same logic will work with RadWindow as well.

    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Steve
    Steve avatar
    4 posts
    Member since:
    May 2011

    Posted 04 May 2011 Link to this post

    I know this original thread is old, but I have the same question so perhaps this answer will help others.

    I'm using Telerik WebUI VSExtensions  2010.03.1109.0. I have been trying to figure out how to drag a control from a RadWindow (acting as a tools pallet) onto my main form.  I discovered that by creating a RadWindow with RadDocks in a RadLayout, I was able to drag a dock from the RadWindow onto my main form.

    The main form has a button which opens a RadWindow containing controls.  The window is defined in the main form within a window manager as shown below.  I am able to drag the controls from the RadWindow into the RadLayout on the main form.  This is as close to drag & drop of controls as I have managed to get so far using RadWindows.

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Outlook" >
                <telerik:RadWindow ID="RadWindow1" Width="500" Height="500" runat="server" Modal="True" OpenerElementID="RadButton4" Title="Customize" DestroyOnClose="True">
                    <telerik:RadDockLayout ID="RadDockLayout2" Runat="server" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout" EnableViewState="False">
                        <telerik:RadDockZone ID="RadDockZone4" Runat="server" Orientation="Vertical" Width="300px" Skin="Outlook" BorderWidth="1"  FitDocks="True" BorderColor="Black" BorderStyle="Solid" EnableViewState="False">
                            <telerik:RadDock ID="RadDock1" Runat="server" Skin="Outlook"
                                Title="Notes" Width="295px" Height="250px" Resizable="True" DockMode="Docked" BorderWidth="2" BorderColor="Black" >
                                    <telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="(Empty)" TextMode="MultiLine" Width="265px" Height="2000px" ></telerik:RadTextBox>
                            <telerik:RadDock ID="RadDock4" Runat="server" Skin="Outlook" Text="Those who are interested do what's convenient, those who are committed do what it takes. "
                            Title="Quote" Width="295px" Resizable="True" Height="100px" DockMode="Docked" BorderWidth="2" BorderColor="Black">
  4. Raka
    Raka avatar
    71 posts
    Member since:
    Sep 2011

    Posted 17 May 2013 Link to this post

    Hello Steve

    Could you possibly share the code that opens up a non-modal RadWindow from a parent radwindow?  Can this non-modal window be dragged outside of the parent?

    Thanks, Raka
Back to Top