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

Specifying a Converter Parameter

2 Answers 169 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 31 May 2011, 03:11 PM
Hi guys,
     Is there a way to specify a converter parameter in this control?  I have tried to specify a ConverterParameter in the binding to the value property, but in the ConvertBack method of the converter, the ConverterParameter is always null.  Maybe this is due to something happening internally in the control.  There is also a ValueToTextConverter property, but you cannot specify a ConverterParameter either.  Basically I want to use one converter that would apply to a variety of masks.  Any help would be appreciated.

Thank you,
P

2 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 02 Jun 2011, 03:23 PM
Hello Pete,

What version are you using? I tested this with the latest internal builds and the converter parameter is passed in both convert and convert back methods. Here is what I am using:

<telerik:RadMaskedNumericInput Value="{Binding DoubleProperty, Mode=TwoWay, Converter={StaticResource conv}, ConverterParameter=myParameter}"/>


Best wishes,
Alex Fidanov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Pete
Top achievements
Rank 1
answered on 02 Jun 2011, 04:55 PM
Alex,

     I have the latest build now, and it seems fine.  Thank you for your help.

Pete
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Pete
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Pete
Top achievements
Rank 1
Share this question
or