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

Validation localization

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sergey
Top achievements
Rank 1
sergey asked on 17 Jul 2015, 11:40 AM
Hello, I have problem with localization. I use custom .resx files to translate all text to Japanese language. but I cant find How can I translate popup message of validation http://i.gyazo.com/93f0c988f386ac50d617c9a4da4b0279.png . Can you give me some advice? Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Jul 2015, 02:40 PM
Hello Sergei,

From the provided image, I assume that this is the default TextBox(this is the editor GridViewDataColumn uses by default) validation tooltip. A possible approach to modify it, would be to use the ErrorTemplate attached property and set it through Style.

<ControlTemplate x:Key="textBlockTemplate">
    <TextBlock Background="Red"/>
</ControlTemplate>

<Style TargetType="TextBox">
    <Setter Property="Validation.ErrorTemplate"
            Value="{StaticResource textBlockTemplate}"/>
</Style>

Then the TextBox control could be localized with the approach demonstrated in the Localize a Silverlight application.

Hope this helps.


Best Regards,
Stefan X1
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
sergey
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or