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

Drag and Drop objects between different windows

3 Answers 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michel Gauvin
Top achievements
Rank 1
Michel Gauvin asked on 03 Sep 2008, 02:20 PM
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!


Christian

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Sep 2008, 12:17 PM
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.




Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Steve
Top achievements
Rank 1
answered on 04 May 2011, 06:28 PM
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" >
        <Windows>
            <telerik:RadWindow ID="RadWindow1" Width="500" Height="500" runat="server" Modal="True" OpenerElementID="RadButton4" Title="Customize" DestroyOnClose="True">
                <ContentTemplate>
                <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" >
                            <ContentTemplate>
                                <telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="(Empty)" TextMode="MultiLine" Width="265px" Height="2000px" ></telerik:RadTextBox>
                            </ContentTemplate>               
                        </telerik:RadDock>
 
                        <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">
                        </telerik:RadDock>
 
                    </telerik:RadDockZone>
                </telerik:RadDockLayout>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
0
Raka
Top achievements
Rank 1
answered on 17 May 2013, 07:13 PM
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
Tags
Window
Asked by
Michel Gauvin
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Steve
Top achievements
Rank 1
Raka
Top achievements
Rank 1
Share this question
or