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

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

1 Answer 52 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Balaram Barange
Top achievements
Rank 1
Balaram Barange asked on 24 Feb 2010, 04:04 PM
Hi,
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?

Thanks,
Balaram

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 25 Feb 2010, 01:07 PM
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:

http://screencast.com/t/OWVmOTc5YmY

Sincerely yours,
Miroslav
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.
Tags
TreeView
Asked by
Balaram Barange
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or