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

Drag/Drop problem when using a standard theme on the RadTreeView

4 Answers 29 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
GEB
Top achievements
Rank 1
GEB asked on 31 Oct 2009, 06:21 PM
I have a RadTreeView that can have objects dropped to it.  I am able to get DropInfo events for the RadTreeViewItem when I do not apply the Office_Blue theme to the RadTreeView.  However, if I do apply the theme to the RadTreeView, then DragInfo events are generated for the RadTreeView, but not for RadTreeViewItem.

4 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 06 Nov 2009, 07:47 AM
Hi GEB,

I am sorry for the delayed reply!

Are you using ItemContainerStyle (or applying a style to the items in any other way)?

When you set a theme locally to a control, any ItemCotnainerStyles are overridden by the theme. If you set a theme as an application theme, you should have no problems with this.

To set a theme as an application theme, put an instance of the theme in your application resources and set its IsApplicationTheme property to true, something like:

<telerik:SummerTheme x:key="theme" IsApplicationTheme="True" />

I tried the DragDrop with the 2009.2.812 version of the controls and I am attaching the project I used.

Does this work in your case?

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
GEB
Top achievements
Rank 1
answered on 06 Nov 2009, 02:18 PM
Thank you for your reply.  I am applying the Office_Blue theme in the XAML within the RadTreeView.  The theme is working perfectly (blue scrollbars rather than the default black, etc).  However, when I apply the theme, I see a peculiar beharior where I no longer get DropInfo events for RadTreeViewItems when I drop an object into the tree.  I only get a DropInfo event for the RadTreeView level.  If I simply remove the Office_Blue theme from the RadTreeView, then I start getting the DropInfo events at the RadTreeViewItem level again.  I have this in a large application, but can try to narrow this down to a simple example if needed.
0
Bobi
Telerik team
answered on 12 Nov 2009, 09:12 AM
Hello GEB,

We apologize for the caused inconvenience and for the late reply.
Can you please send us the sample project you mentioned in order to resolve the problem?


Sincerely yours,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
GEB
Top achievements
Rank 1
answered on 12 Nov 2009, 06:23 PM
I have been able to reproduce this issue in a small test project, and will submit it as a support ticket.
Tags
TreeView
Asked by
GEB
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
GEB
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or