Specifying a Converter Parameter

3 posts, 0 answers
  1. Pete
    Pete avatar
    3 posts
    Member since:
    May 2011

    Posted 31 May 2011 Link to this post

    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,
  2. Alex Fidanov
    Alex Fidanov avatar
    637 posts

    Posted 02 Jun 2011 Link to this post

    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
  3. Pete
    Pete avatar
    3 posts
    Member since:
    May 2011

    Posted 02 Jun 2011 Link to this post


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

Back to Top