Validation localization

2 posts, 0 answers
  1. sergey
    sergey avatar
    1 posts
    Member since:
    Oct 2013

    Posted 17 Jul 2015 Link to this post

    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 . Can you give me some advice? Thanks
  2. Stefan
    Stefan avatar
    1073 posts

    Posted 21 Jul 2015 Link to this post

    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"/>

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

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

    Hope this helps.

    Best Regards,
    Stefan X1
    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
Back to Top