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

Databind issue on NumericUpDown

3 Answers 78 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cihan
Top achievements
Rank 1
Cihan asked on 24 Oct 2013, 08:12 AM
Hi,

I would like to use a numeric updown on wp8 application. however I couldn't manage to get the updated value on the control...

When the field is updated, I just re-populate a RadDataBoundListBox. If I use a textblock instead of numericupdown control in this radDataboundListBox, I can see the updated value on textblock but if I use numericupdown, it still shows the previous value.. Here is my dataTemplate that I use for both controls

<DataTemplate x:Key="DataBoundListBoxItemTemplate">

     <Grid Margin="0,0,0,12">

         <Grid.ColumnDefinitions>

             <ColumnDefinition/>

             <ColumnDefinition Width="Auto"/>

         </Grid.ColumnDefinitions>

         <StackPanel Margin="0,-14,0,0">

             <Controls:RadNumericUpDown MaxValue="10" MinValue="0" Value="{Binding quantityField}" />

             <TextBlock FontSize="{StaticResource PhoneFontSizeExtraLarge}" FontFamily="{StaticResource PhoneFontFamilySemiLight}" Text="{Binding quantityField}" TextWrapping="Wrap"/>

         </StackPanel>

     </Grid>

</DataTemplate>

 

Thanks in advance,

Cihan

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 28 Oct 2013, 08:48 AM
Hi Cihan,

Thanks for writing.

By looking at your XAML code I cannot exactly say why this issue happens. It is possible for you to attach a sample project that reproduces the issue here so that we can take a look and see how to further assist you?

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Yvan
Top achievements
Rank 1
answered on 08 Jan 2014, 06:22 PM

Hi Deyan,

I have the same problem than Cihan with the Silverlight RadNumericUpDown version 2013.3.1125.

Here a sample (a UI exemple is in attachment):

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
 
        <TextBlock Text="Enter a value:" />
        <telerik:RadNumericUpDown x:Name="NumericValue1" Grid.Column="1" Width="100" ShowButtons="False"  />
 
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Value entered:" />
        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Value, ElementName=NumericValue1}" />
        
    </Grid>
0
Deyan
Telerik team
answered on 13 Jan 2014, 08:41 AM
Hello Yvan,

Please redirect RadControls for Silverlight questions to the corresponding forums. Here only the RadControls for Windows Phone are supported.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
NumericUpDown
Asked by
Cihan
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Yvan
Top achievements
Rank 1
Share this question
or