We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problem showing null value

Thread ID:

Created:

Updated:

Platform:

Replies:

123576 Mar 31,2016 04:32 PM UTC Apr 1,2016 12:35 PM UTC WPF 1
loading
Tags: UpDown
Silvio
Asked On March 31, 2016 04:32 PM UTC

Hi,

I'm using an UpDown control whose binded to a property of type int?.
I have defined the control like this:

    <Syncfusion:UpDown  
 MinValidation="OnKeyPress" 
MinValue="1" 
EnableRangeAdorner="True" 
EnableExtendedScrolling="True" 
UseNullOption="True" 
Step="1" 
 Value="{Binding ShowLastNTransactions}"
>
</Syncfusion:UpDown>

The UseNullOption property correctly works when the user delete the cell content (the binded property is correctly set to null and the content is cleared).
Otherwise, when the form is shown for the first time and the binded property is equal to null, the cell content is not shown empty but, instead, it contains the value "1".
What I have to do in order to have blank cell content at startup if the binded property is null?

Best regards,
Silvio

Durga Rajan [Syncfusion]
Replied On April 1, 2016 12:35 PM UTC

Hi Silvio,

Thank you for contacting Syncfusion Support.

We have analyzed the reported issue "Could not bind the null value when binding property is type int". The type of the TextArea used in Updown control is double. When we use Nullable integer, the binding value cannot be parsed. So we suggest you to use Nullable double property to bind a value. We have attached the sample and you can download the same from the following attachment.  

Regards,
Durga S.

Attachment: UpDown_Sample_642409f7.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;