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

Custom Template

1 Answer 57 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
mariusz piatek
Top achievements
Rank 1
mariusz piatek asked on 05 Jul 2011, 06:45 AM
Hello,
I creted custom template for input control. But it doesn't work properly
<Style TargetType="telerik:RadMaskedNumericInput">
       <Setter Property="Margin" Value="2 2 2 2"/>
       <Setter Property="IsClearButtonVisible" Value="False"/>
       <Setter Property="TextMode" Value="PlainText"/>
       <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
       <Setter Property="Validation.ErrorTemplate">
           <Setter.Value>
               <ControlTemplate>
               </ControlTemplate>
           </Setter.Value>
       </Setter>
       <Style.Triggers>
           <Trigger Property="Validation.HasError" Value="true">
               <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
               <Setter Property="BorderBrush" Value="Red"/>
           </Trigger>
       </Style.Triggers>
   </Style>

First of all ClearButton is still visible.

BorderBrush changed to red after validation error, but only after I focus and unfocus control.
ValidationError don't appear in ToolTip.
I use newest compilation.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Jul 2011, 04:46 PM
Hi Mariusz Piatek,

I wasn't able to reproduce the issue on our side. Can you please have a look at the attached sample and let me know if it works for you or if I am missing something?

All the best,
Tina Stancheva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
mariusz piatek
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or