Changing values after decimal point
Hi,
I'm trying to find a way to change the values after the decimal point using the buttons and keyboard.
For example, if my initial value is 0.000 and my cursor is between the decimal point and the first zero (0.|000) and I'm pressing the up button or the up keyboard button I would like that the value would be 0.100 and not 1.000.
Same thing for when I'm marking one digit (0.000) I would like it to be 0.100 and not 1.000.
Is it possible?
Thanks in advance.
I'm trying to find a way to change the values after the decimal point using the buttons and keyboard.
For example, if my initial value is 0.000 and my cursor is between the decimal point and the first zero (0.|000) and I'm pressing the up button or the up keyboard button I would like that the value would be 0.100 and not 1.000.
Same thing for when I'm marking one digit (0.000) I would like it to be 0.100 and not 1.000.
Is it possible?
Thanks in advance.
SIGN IN To post a reply.
7 Replies
VJ
Victory Jessie Selvam D
Syncfusion Team
December 15, 2015 12:16 PM UTC
Hi Dov,
Thank you for using Syncfusion products.
Currently our UpDown control does not support increment or decrement value based on CaretIndex. However, we have prepared a workaround sample and tried to meet your requirement. In the sample, we have modified the value of Step property based on SelectionStart position in the text box and in the repeat button PreviewMouseDown event. You can download the sample for the same from the following link:
Sample: UpDown_keys
Regards,
Jessie
Thank you for using Syncfusion products.
Currently our UpDown control does not support increment or decrement value based on CaretIndex. However, we have prepared a workaround sample and tried to meet your requirement. In the sample, we have modified the value of Step property based on SelectionStart position in the text box and in the repeat button PreviewMouseDown event. You can download the sample for the same from the following link:
Sample: UpDown_keys
Regards,
Jessie
DO
Dov
December 16, 2015 06:45 AM UTC
Thanks!
Exactly what I needed.
Exactly what I needed.
VJ
Victory Jessie Selvam D
Syncfusion Team
December 16, 2015 11:26 AM UTC
Hi Dov,
Thank you for your update.
Please let us know if you need any other assistance.
Regards,
Jessie
Thank you for your update.
Please let us know if you need any other assistance.
Regards,
Jessie
DO
Dov
December 6, 2016 01:37 PM UTC
Hi,
Is it possible to create this sample to a DoubleTextBox control?
Regards,
Dov.
Is it possible to create this sample to a DoubleTextBox control?
Regards,
Dov.
JR
Jegan Raj M
Syncfusion Team
December 14, 2016 12:52 PM UTC
Hi Dov,
Sorry for the delay.
Yes, it is possible to increment or decrement the value in DoubleTextBox based on CaretIndex. We have prepared a workaround sample in which we have modified the value of Step property based on SelectionStart position in the DoubleTextBox and it can be downloaded from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/121426/ze/DoubleTextBoxUpDown-2142180224
Regards,
Jegan Raj M
Sorry for the delay.
Yes, it is possible to increment or decrement the value in DoubleTextBox based on CaretIndex. We have prepared a workaround sample in which we have modified the value of Step property based on SelectionStart position in the DoubleTextBox and it can be downloaded from the below link.
Sample: http://www.syncfusion.com/downloads/support/forum/121426/ze/DoubleTextBoxUpDown-2142180224
Regards,
Jegan Raj M
DO
Dov
December 15, 2016 06:12 AM UTC
Thank you for the reply.
I still have 2 problems in DoubleTextBox control:
1. On first button press on any digit after decimal point the leading zero change as well (happens only on first press).
2. If the value is 100.00 and I want to change the number that is marked if I stand to the left and press up the result would be 101.00 instead of 110.00.
Is it possible to give a solution for all digits prior to the decimal point?
Regards,
Dov.
I still have 2 problems in DoubleTextBox control:
1. On first button press on any digit after decimal point the leading zero change as well (happens only on first press).
2. If the value is 100.00 and I want to change the number that is marked if I stand to the left and press up the result would be 101.00 instead of 110.00.
Is it possible to give a solution for all digits prior to the decimal point?
Regards,
Dov.
KJ
Keerthana Jegannathan
Syncfusion Team
December 16, 2016 12:46 PM UTC
Hi Dov,
We have modified the sample in which we have updated the value before the decimal point on up key and down key for 3 digits before decimal point using the “Step” property and by handling the “ValueChanging” and “Preview_KeyUp” of the DoubleTextBox and it can be downloaded from the below location.
Sample: DoubleTextBoxUpDown
Please let us know if we misunderstood your query.
Regards,
Keerthana J
SIGN IN To post a reply.
- 7 Replies
- 4 Participants
-
DO Dov
- Dec 14, 2015 07:50 AM UTC
- Dec 16, 2016 12:46 PM UTC