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

RadMaskedNumericInput ext:MaskedInputExtensions.Minimum property in style resource

2 Answers 109 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Milt
Top achievements
Rank 1
Milt asked on 07 Oct 2011, 02:53 PM

I am trying to mask out negative numbers while using RadMaskedNumericInput.  There was a thread on setting ext:MaskedInputExtensions.minimum="0" and that works great for us.  We have about 50 RadMaskedNumericInput instances, so I added the following to our style resource xaml for RadMaskedNumericInput:

 

    <Setter Property="ext:MaskedInputExtensions.Minimum" Value="0" />
I am now getting the following exception:
        {"'Set property 'System.Windows.Setter.Property' threw an exception.' Line number '1423' and line position '10'."}
        {"Value cannot be null.\r\nParameter name: property"}

Can this property be in the style resource XAML?  If so, how should that be specified?  Any advise would be appreciated.

Thanks,
-Milt

 

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 12 Oct 2011, 05:26 PM
Hello Milt,

You are properly setting the property in the Style Setter, however we found a bug in the implementation of the MaskedInputExtensions properties. This bug is causing the exception you reported. I logged it in our PITS where you can track its progress. Please accept our apology for this inconvenience.

We will fix it for the next internal build. I also updated your Telerik account for bringing this issue to our attention.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Milt
Top achievements
Rank 1
answered on 12 Oct 2011, 07:34 PM
Thanks Tina,

I will track this issue.

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