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

Dragging...to html?

1 Answer 45 Views
Dock
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 08 Mar 2009, 10:07 PM
Kind of had an idea to have some sort of designer where I can drag around items inside of a panel, then export their co-ords to html (or xml)...kindof like a dynamic layout on my page.

This do-able with the raddock, or is my only option to create docking areas to drag the items into?

1 Answer, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 09 Mar 2009, 07:29 PM
Hey Steve,

Something which you could try...

Check out this demo:

http://demos.telerik.com/aspnet-ajax/dock/examples/zoneorientation/defaultcs.aspx

Notice how if you drag the docks over to the right, they'll stay floating where you drop them?  You can combine this with the client-side get_left and get_top methods to retrieve the location on a page where the dock is at.  You can see other client-side methods on the help page, in case there are any other settings that you want to save.  You can retrieve these values in OnClientDragEnd on the client-side, then you'll just need to save them by your own methods to preserve the state of the dock. :)
Tags
Dock
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Serrin
Top achievements
Rank 1
Share this question
or