Minimum Property Issue

2 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 31 Aug 2010 Link to this post

    I have the latest build. 2010 Q2 SP1.
    I have an issue wtih the RadNumericUpDown minimum property. Let's say the minimum property is set to 5 and the Value Property is bound to an object that has not been set yet. The control appears initially with a value of 0 and you cannot change it using the updown buttons since moving it up does not meet the minimum value.

    Any suggestions?

    Here is my xaml:

    <ItemsControl ItemsSource="{Binding WorkingVentilatorOrder.VentilatorOrderParameterValueList_}">
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <StackPanel Visibility="{Binding EndTime, Converter={StaticResource NullVisibilityConverter}, ConverterParameter=visible}" Margin="10,5,10,5">
                    <TextBlock Text="{Binding VentilatorParameter_.Name}" Style="{DynamicResource DialogTextBlockStyle}" />
                    <telerik:RadNumericUpDown Value="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Minimum="{Binding VentilatorParameter_.MinValue, Converter={StaticResource NullValueConverter}, ConverterParameter=0}" Maximum="{Binding VentilatorParameter_.MaxValue, Converter={StaticResource NullValueConverter}, ConverterParameter=1000}" ValueFormat="Numeric" />
                </StackPanel>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
  2. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 31 Aug 2010 Link to this post

    My apologies. It was my converter that was causing the problem.

    Thanks,

    Billy Jacobs
Back to Top