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

drag and drop between different Rad Windows

3 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Aug 2010, 09:28 AM
I have a RadGrid of inventory items inside a RadWindow.  I have an invoice in a second RadWindow which contains a second RadGrid.  I would like to be able to drag items from the Inventory RadWindow into the Invoice RadWindow.

Does anyone have an example of something like this?

I tried to start with a working example of drag and drop from the Telerik website and put my two grids in different RadWindows.  However, when I start the drag, it won't let me drag the item outside that RadWindow.  It's as if the parent of the items being dragged needs to somehow be parented to the root window and not the RadWindow (that's just a guess).  See the attached image.

Beyond this, I'm not sure what needs to happen on the dropping side.  It would need to get an indication on the other side that these were in fact Inventory items and the list of Items (at least the list of IDs).  Then it could add those to it's list.

Michael Grant

3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 24 Aug 2010, 10:12 AM
Hello Michael,

If your RadWindow instances load separate pages, the window renders an IFRAME that loads the content from your destination URL. You cannot drag HTML DOM elements from IFRAMEs into the parent window or other IFRAMEs.

Greetings,
Veli
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
Michael
Top achievements
Rank 1
answered on 24 Aug 2010, 10:40 AM
Is there a way to open a radWindow (without it being an iframe) and then use an ajax request to inject the contents of another url (from the same server) into the new radWindow?

Then, shouldn't I be able to do this sort of dragging and dropping?

Michael Grant
0
Veli
Telerik team
answered on 24 Aug 2010, 11:17 AM
This scenario is not supported by RadWindow. You can define both your grids in the two RadWindow content templates on the same ASPX page, though. Thus, your RadGrid instances will live on the same page and you will be able to drag and drop rows in the same DOM tree. For more info, you can refer to the RadWindow - use as a controls container live demo.

Regards,
Veli
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
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Veli
Telerik team
Michael
Top achievements
Rank 1
Share this question
or