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

TextDrop customization

1 Answer 37 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Marcin Danek
Top achievements
Rank 1
Marcin Danek asked on 17 Sep 2009, 07:10 AM
Hello,

there is an option in RadTreeView to customize texts displayed while dragging elements. But, as I see, this properties are not DependencyProperties and there is no possibility to define them in a style. It would be very usefull, because I use tree view control on about 10 different controls. The text must be set to localized string taken from resource file.
It would be great to set this properties in a style in a global file, and then only assign the style to every tree.

If it is possible in any way, please let me know.

Thanks for your help,
Marcin Danek

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav
Telerik team
answered on 17 Sep 2009, 03:59 PM
Hi Marcin Danek,

All Telerik controls use the LocalizationManager, which can work with resource files and supply localized strings to all controls.

The key-values that you need in your resource file for the particular text is:

TreeViewDropAfter Drop after
TreeViewDropBefore Drop before
TreeViewDropIn Drop in
TreeViewDropRoot Drop as root

These articles describe the localization and give an example with the RadUpload, but it should be the same with the Treeview:

http://www.telerik.com/support/kb/silverlight/upload/localize-radupload-for-silverlight.aspx

http://blogs.telerik.com/silverlightteam/posts/09-05-13/localization_for_radcontrols_for_silverlight_and_wpf.aspx

Kind regards,
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.
Tags
TreeView
Asked by
Marcin Danek
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or