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

Minimum Property Issue

1 Answer 80 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 31 Aug 2010, 05:31 PM

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>

1 Answer, 1 is accepted

Sort by
0
StevenDale
Top achievements
Rank 2
answered on 31 Aug 2010, 05:38 PM
My apologies. It was my converter that was causing the problem.

Thanks,

Billy Jacobs
Tags
NumericUpDown
Asked by
StevenDale
Top achievements
Rank 2
Answers by
StevenDale
Top achievements
Rank 2
Share this question
or