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. Image for the cookie policy date

Problem showing null value


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

 Value="{Binding ShowLastNTransactions}"

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,

1 Reply

DR Durga Rajan Syncfusion Team 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.  

Durga S.

Attachment: UpDown_Sample_642409f7.zip

Live Chat Icon For mobile
Up arrow icon