Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Null

Not answered Null

Feed from this thread
  • UGH!! avatar

    Posted on Apr 25, 2011 (permalink)

    Is there anyway to display a null value in the NumericUpDown control? I don't have an issue saving "null", but the control never shows anything but 0 or >0, even when it's explicity set to null.  I need it to display null and integers.  Thanks!

     

     

     

     

     

    <

     

     

    telerik:RadNumericUpDown x:Name="numMileage" NullValue="" Width="75" IsInteger="True" Minimum="-1" Maximum="30001" NumberDecimalDigits="0" Value="{Binding MileageRange, Mode=TwoWay, ValidatesOnExceptions=True}" Margin="0,0,10,0"></telerik:RadNumericUpDown>

     

    Reply

  • Yana Yana admin's avatar

    Posted on Apr 27, 2011 (permalink)

    Hello,

    You should set the NullValue property of the NumericUpDown to the needed value like this:

    <telerik:RadNumericUpDown x:Name="numMileage" NullValue="null" ... />

    Hope this helps.

    Regards,
    Yana
    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

    Reply

  • UGH!! avatar

    Posted on Apr 27, 2011 (permalink)

    Thanks for responding ... but I've already tried that and it doesn't seem to work.  It always shows a 0 instead of null.  Any other ideas??

    Reply

  • Yana Yana admin's avatar

    Posted on May 2, 2011 (permalink)

    Hi,

    You can find attached a simple example which demonstrates that RadNumericUpDown shows "null" when its value is null without a problem at our side.  What is different in your case?

    Best wishes,
    Yana
    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

    Reply

  • Denis Vuyka avatar

    Posted on Jul 4, 2011 (permalink)

    I have a range 0-100 for the nullable value and have no issues displaying "NULL". However I can't find a way to reset the value to "NULL" from the control. How can user define 0-100 and "NULL" from the UI?
    Thanks in advance,
    Denis

    Reply

  • Yana Yana admin's avatar

    Posted on Jul 5, 2011 (permalink)

    Hello Denis,

    You should set IsEditable property of the NumericUpDown to true and then the user will be able to delete the text and thus set the value to NULL.

    Hope this helps.

    Best wishes,
    Yana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Null
Related resources for "Null"

Silverlight NumericUpDown Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]