Change Tab on drag over of an item from RAD Tree.

2 posts, 0 answers
  1. Balaram Barange
    Balaram Barange avatar
    28 posts
    Member since:
    Apr 2009

    Posted 24 Feb 2010 Link to this post

    I am using RAD tree and Tab control from telerik in my application.
    This might have been asked on here before - but I couldn't find it through the searches.
    In my application I have 2 tabs - first tab containing list of objects. I want to be able to grab a selected object from the first tab, and drag it over second tab that I want to drop it into. So when I have it over the desired tab, the tab selection will change to that.

    Is this possible? Would anyone care to share any ideas as to how to do it?

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 25 Feb 2010 Link to this post

    Hi Balaram Barange,

    This should be fairly straightforward with the DragDrop.

    Every dragged item looks for a drop target, the TabItems can be made drop targets by setting their AllowDrop property. Then when the DropQuery event fires the TabItems can be selected.

    The attached example shows how items can be moved across TreeViews over a Tab with DragDrop.

    Here is a video of how this works:

    Sincerely yours,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top