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

Dynamic Drag and Drop

1 Answer 49 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
StevenSmith
Top achievements
Rank 1
StevenSmith asked on 02 Feb 2010, 09:08 PM
I'm looking for an example similar to this help topic:
http://www.telerik.com/help/silverlight/raddraganddrop-between-listboxes-with-user-feedback.html

However, I want it to support dynamic columns and items.  Columns could be ListBoxes or StackPanels or whatever.  Items are simply rectangular controls with some text/image in them.  However, I have a completely dynamic number of columns, and locations of items within columns, and I need to be able to persist to/from storage the locations of all items in all columns.

Something like this:

Col1   Col2   Col3
Item1  Item2  Item3
Item4  Item5
Item6

The example has the functionality I want, including reordering within a column and providing user feedback.  I'm really just looking for some sample code or tips on organizing my controls in such a way that I can programmatically create the UI, rather than in tons of XAML, based on the persisted state(s) of the columns and items.

Thanks!
Steve




1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 03 Feb 2010, 01:10 PM
Hi StevenSmith,

You can use the RadDragAndDropManager not only in XAML, but from code behind too. Please check the online help articles here:
http://www.telerik.com/help/silverlight/raddraganddrop-getting-started-allow-drag-and-drop.html

There are plenty of scenarios coverd in the help topics. If you need more help don't hesitate to contact us.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
DragAndDrop
Asked by
StevenSmith
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or