Sliverlight Treeview add before and after, Move up / down items

4 posts, 0 answers
  1. Saqib
    Saqib avatar
    4 posts
    Member since:
    Feb 2014

    Posted 14 Feb 2014 Link to this post

    Hi,

    i am trying to add an item after / before of selected item in a tree view,
    how can i achieve this, and also moving items up and down using move up and down button

    Regards,
    Saqib
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 17 Feb 2014 Link to this post

    Hello Scapi,

    Could you please elaborate some more on your particular scenario? Any snapshots, examples on the desired outcome will be greatly appreciated.

    Regards,
    Boris Penev
    Telerik

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

  3. DevCraft banner
  4. Saqib
    Saqib avatar
    4 posts
    Member since:
    Feb 2014

    Posted 17 Feb 2014 Link to this post

    Hello Boris,

    Thanks for your reply.

    I have attached a screen shot which is showing a place holder when dragging after / before, i want to achieve similar to that. and also want to add item to any specific location in the tree view, lets say add an item next to selected item.

    Regards,
    Saqib
  5. Boris
    Admin
    Boris avatar
    276 posts

    Posted 19 Feb 2014 Link to this post

    Hello Saqib,

    As far as I understood what you have in mind you need to be able to drag and drop RadTreeViewItems before / after other TreeViewItems. In order to do that you need to set the IsDragDropEnabled property to "True", by doing so you activate the built-in support for DragDrop in the RadTreeView.

    Please note that if you are using a data-bound RadTreeView you may need to implement custom drag and drop logic in order to copy your business items (like it's shown in the SDK example).
     More information about the DragDrop feature of the RadTreeView you can find in the following articles:
    From your screen shot I'm not entirely sure do you want to leave an empty space when you move an item?

    As for the second part of your question where you mention that you need to add for example an item next to the select one, is this somehow related to the drag drop process or it is a separate requirement that can be performed programmatically ?



    Regards,
    Boris Penev
    Telerik
Back to Top