RadNumericInput and RadMaskedDateTimeInput empty content

4 posts, 0 answers
  1. Rohini
    Rohini avatar
    2 posts
    Member since:
    Dec 2011

    Posted 23 Jan 2012 Link to this post

    Hi,

      We are using RadMaskedDateTimeInput ,RadNumericInput and many others in our project. Main intention is for localization. It works great in most cases. But RadNumericInput shows the min value in the text box when nothing has been set. This issue does occurs only when minvalue is specified.

    Similary RadMaskedDateTimeInput shows today's date when no date is set.

    Is there a solution identified for these 2 issues.

    Thanks,
    Rohini
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 25 Jan 2012 Link to this post

    Hi Rohini,

    You can set the value to null in code behind whenever nothing else is specified. In the xaml definition of the controls you can set the Value of the controls to {x:Null}. This way when the controls are loaded, unless their values are changed, the controls will remain empty.

    Please give this a try and let me know if it works for you.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Rohini
    Rohini avatar
    2 posts
    Member since:
    Dec 2011

    Posted 27 Jan 2012 Link to this post

    Hi Tina,


       Thanks for the reply. But we have already tried this. This solution did not work for us as we use the Binding property. When we set value to x:Null the values do not get bound.

    Please let us know if there is any other way.

    Thanks,
    Rohini
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jan 2012 Link to this post

    Hello Rohini,

    Thank you for getting back to us. In a databinding scenario, in order to display a null value in the RadMaskedDateTimeInput and RadMaskedNumericInput controls, you need to bind their Values to nullable types.

    I attached a sample project demonstrating this approach. Let me know if it helps.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top