Dynamic Drag and Drop

2 posts, 0 answers
  1. StevenSmith
    StevenSmith avatar
    1 posts
    Member since:
    Oct 2008

    Posted 02 Feb 2010 Link to this post

    I'm looking for an example similar to this help topic:

    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

    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.


  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 03 Feb 2010 Link to this post

    Hi StevenSmith,

    You can use the RadDragAndDropManager not only in XAML, but from code behind too. Please check the online help articles here:

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

    Sincerely yours,
    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.
Back to Top