Databind issue on NumericUpDown

4 posts, 0 answers
  1. Cihan
    Cihan avatar
    1 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2013 Link to this post

    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

  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 28 Oct 2013 Link to this post

    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.
  3. DevCraft banner
  4. Yvan
    Yvan avatar
    16 posts
    Member since:
    Sep 2007

    Posted 08 Jan 2014 Link to this post

    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>
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 13 Jan 2014 Link to this post

    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.
Back to Top
DevCraft banner