|
Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
Hi,
I am investigating the possibility of implementing drag and drop functionality with eoWeb controls. Say for example using JQuery to select a cell from grid and dragging it into a drop area elsewhere in the web app. Is it possible? Have you seen that done (examples?). If yes, how can I reference an ASP control embedded in a custom item (of a grid for example) from a JQuery function?
Thanks. H
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can probably do it but there is no server control for you to reference on from your JQuery. An ASP.NET control is embedded in the custom item's EditorTemplate only. The EditorTemplate is only active when the cell is in editing mode and a single instance is shared between all cells for that column because at any time only one cell for a column will be in edit mode. So that makes it pointless for drag and drop purpose.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
I see. You are right, my example does not make sense. Would there be a possibility to select a grid Item and apply the dragging to that, or for that matter to a particular node in a treenode for example?
|
|
Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
Hi,
Please disregard this thread. The drag and drop functionality I was talking about has nothing to do with EO controls and can be done with a standard Jquery implementation, updating a Div with whatever information gathered from Eo control events such as OnItemClick and then making that div the draggable object.
Apologies for the distraction. H
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
OK. Thanks for the update.
|
|