Welcome Guest Search | Active Topics | Sign In | Register

drag n drop to non eo:control Options
craig
Posted: Thursday, April 2, 2015 7:43:31 AM
Rank: Newbie
Groups: Member

Joined: 4/2/2015
Posts: 1
is it possible to drag-n-drop from an eo:TreeView to a canvas control or other control that not not derive from eo classes?
if so, how ?
eo_support
Posted: Thursday, April 2, 2015 12:54:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You can drag from the TreeView to anywhere. You will need to implement a DragTarget object with JavaScript and then register your DragTarget object with EO DragDrop engine through eo_RegisterDragTarget. See here for a working example:

http://demo.essentialobjects.com/Demos/TreeView/Programming/Drag%20Drop%20to%20Grid/Demo.aspx

This sample implements a DragTarget object and inside the DragTarget object it checks whether its something the Grid can accept, and if it is, it adds a new item to the Grid. You will need to use the code in that sample as a template and replace the actual code with your own code, then you will be able to drop onto other controls.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.