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

SfNumericTextBox Bonding Null value

Hi,

I'm using the SfNumericTextbox binding his "Value" property to a dependency property inside my user control.

A "0" appears every time I click on the SfNumericTextbox, even if the default value of my DP is null. How can I prevent this "0" to appear ?

It's a issue because the cursor is placed before this "0", so when I want to put the 54 value for exemple, it displays 540.

Thanks in advance, Rafi.

4 Replies

VJ Victory Jessie Selvam D Syncfusion Team December 20, 2013 07:23 AM UTC

Hi Raphael,

Thanks for using Syncfusion products.

Query #1: A "0" appears every time I click on the SfNumericTextbox, even if the default value of my DP is null. How can I prevent this "0" to appear ?
We have prepared a sample to achieve this requirement. In the attached sample we have set AllowNull property to true for accepting null values and to prevent "0" if Value is null.

Query #2: It's an issue because the cursor is placed before this "0", so when I want to put the 54 value for example, it displays 540
We are unable to reproduce the reported issue in attached sample. Please provide us more information by modifying this sample to reproduce your problem. So that it will be helpful for us to analyse and provide you accurate solution.

Please let us know whether the provided sample resolves your problem.

Regards,
Victory



NumericTextBox_a2ed4835.zip


VV Vignesh V Syncfusion Team December 20, 2013 11:27 AM UTC

Hi Raphael,

Query 2:It's an issue because the cursor is placed before this "0", so when I want to put the 54 value for example, it displays 540

We have checked in versions descendingly until 11.3.0.30 versions and we are unable to reproduce the reported problem. please provide us your working version so that we can analyse  based on that.

Please let us know if you have any queries.

Regards,
Vignesh V


DE Denis September 5, 2016 10:18 AM UTC

Hi, how look attach file?


PB Priyanga Balasubramaniam Syncfusion Team September 6, 2016 10:25 AM UTC

Hi Denis,

Sorry for the inconvenience caused.

We have prepared the new sample to meet your requirement.In this sample we have set AllowNull property to true for accepting null values and to prevent "0" if Value is null. Please download the sample from the below location.

Sample:NumericTextBoxSample

Regards,
Priyanga B

Loader.
Live Chat Icon For mobile
Up arrow icon