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
0
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.
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
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.
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.