SFNumericUpDown: Getting the button tap events or getting dynamic stepValues

Hello,

I'm starting to testing the NumericUpDown control for using in our app.

We need the situation of dynamic step values, for example at a tap the value shall change to 0.25, then 0.33, then  0.5, then 0.66, then 0.75, then 1 and so on.

I tried to do this with the valueChanged Event and set directly the next value on depending the old value. That works so far.

Now we have the problem to handle the manual keyboard input to the control. We still whant to have our value changes per buttons as it descriped above.

For example:

We enter the value 0,26 with keyboard to the control and now we want to tap on the + button and get the value 0.33, it shall not be nessesary to bring the keyboard entry out of focus for ths way of input.

A demo page is attached.

Sincerly

Christian Kurz


Attachment: NumericInputDemoPage_741acfcf.zip

13 Replies

SS Sridevi Sivakumar Syncfusion Team August 11, 2021 12:51 PM UTC

Hi Christian Kurz,

Greetings from Syncfusion.

We have checked your shared sample code. In your update, you said, "Getting the button tap events or getting dynamic step values". Can you please explain the use case of this requirement?   It will be helpful to validate the feature based on your requirement and use case scenarios our side.

In framework editor controls (like Entry, Editor), the keyboard will be hidden automatically when the control lost focus. Are you expecting to show the keyboard always, when control lost the focus and click the + button.?

Please revert us with above requested information, if your requirement is different from this.

Regards,
Sridevi S.
 



SS Swetha Srikumar Syncfusion Team August 12, 2021 04:26 AM UTC

To: Syncfusion Support <[email protected]>
Subject: Cannot post a forum reply 

Hello, 
 
I need some help. 
 
I tried to answer to a forum thread on your system with the following text: 
 
Hello, 
thank you for your reply. 
I will try to explain it more excatly, I hope this will help. 
We want to use this Syncfusion control in our app for doing a dosage input of medicines, for example pills, salves and so on. There we want to provide several steps when you tap on the plus or minus button. 
These steps are for example 0, then 0.25, then 0.33, then 0.5, then 0.66, then 0.75, then 1 and so on when you hit the plus button. So we can not use a constant stepvalue, we need a dynamic one depending on the value whitch is currently shown in the control. 
I tried to use the ValueChanged event of the control to manipulate the value depending on the value shown before. This works fine when you only use the plus and minus buttons of the control. 
Now I tried to do it a little more harder when I use the keyboard input to the control and set a number via keyboard. When I use ValueChanged event I don't know if the value has changed by tapping one of the buttons or if it is entered by the user via keyboard. So I need something to detect how the new value has come to the control. 
Further I want do do after entering a value in the control via keyboard and then tapping one of the buttons I will use our dynamic steps again and jump to the next defined number like 0.25, 0.33 and so on.  
I found out that the keyboard is still visible and the text entry is still focused when I tapped one of the buttons. So I need not directly the valueChanged event, I need an event witch is only provided when you tap one of the buttons of the control, not the keyboard. The keyboard input method shall not be disabled, it shall be provided always as second input method. 
At the moment we use the Syncfusion numericEntry control to handle the dosage inputs. But there are problems on some android devices with some keyboards to do an input with a decimal point or here in Germany with the comma. On these phones we can not do an input of 0.5 as input for a half pill for example, 
Maybe you have an sugesstion for me to do this. 
Sincerly 
Christian Kurz 
 
A screenshot oft he problem is attached to this mail. 
 
Sincerly 
 
Christian Kurz


firefox_uz3zfUEzBa



ET Eswaran Thirugnanasambandam Syncfusion Team August 13, 2021 03:24 PM UTC

Hi Christian Kurz,  
 
Thanks for your update.  
 
Your requirement can be achieved by using a custom view using Button view support. SfNumericUpDown doesn’t have a button click event, but we can achieve your requirement by adding a tap gesture to the custom view. So that when clicking the custom view, tap gesture event will called and we can find whether the button is clicked, or the input view is clicked.  
 
For more details about button view please check the below link.  
 
 
Based on your requirement we have prepared a sample in which we have added a custom view for the increment and decrement button and added a tap gesture to the custom view. Please get the sample from the below link.  
 
  
Please check the sample and let us know if you have any concerns.  
 
Regards,  
Eswaran 



CK Christian Kurz August 17, 2021 07:58 AM UTC

Hi,


thank you for the message and the example. I will try it out.


Regards


Christian Kurz



SS Sridevi Sivakumar Syncfusion Team August 18, 2021 06:33 AM UTC

Hi Christian Kurz,

Thanks for your update.

We will wait until hear from you.

Regards,
Sridevi S.



SS Swetha Srikumar Syncfusion Team August 20, 2021 10:03 AM UTC

To: Syncfusion Support <[email protected]>
Subject: AW: Syncfusion Forum [167991] has a new reply - SFNumericUpDown: Getting the button tap events or getting dynamic stepValues 
  
  
Hello, 
 
please post the following text to as a reply: 
 
 
Hi,


thank you a lot for posting the example.


I just gave a short look to it today because I start now to my summer holidays.


I think this will help us a lot do it with the ButtonViews and the TapGestureRecognizers to get the events of the button without handling the ValueChanged event.


I have to look further and try to transfer your example to our app to do more tests.


This will happen after my summer holidays witch are ending in nearly 3 weeks.


Best regards


Christian Kurz
 



ET Eswaran Thirugnanasambandam Syncfusion Team August 23, 2021 10:40 AM UTC

Hi Christian Kurz, 
 
Thanks for your update. 
 
We will wait until hear from you. 
 
Regards, 
Eswaran  



CK Christian Kurz September 14, 2021 09:58 AM UTC

Hi,

I'm back from my holidays and I have checked your example and I did a test implementation in our app. It works so far like it shall do in my eyes. You haven't to use the ValueChanged event. Thank you a lot for your help.

Now we must look if we use it as input field in our app.

Best regards

Christian Kurz



ET Eswaran Thirugnanasambandam Syncfusion Team September 15, 2021 05:21 AM UTC

Hi Christian Kurz, 
 
Thanks for your update, 
 
Let us know, if you need further assistance. 
 
Regards, 
Eswaran 



UN Unknown January 27, 2022 10:26 AM UTC

Hi,

we have a problem with the iOS counterpart: the Tapped-Events don't raised. I have try to use a Button instead of an image with tappgesturerecognizer, but the problem is the same, the click-event don't raised. How we can solve the issue?


P. S.: The same is on the example-project.



ET Eswaran Thirugnanasambandam Syncfusion Team January 28, 2022 03:28 PM UTC

Hi Albert Ruff, 
 
Currently, we are checking the reported problem and we will update further details on January 31, 2022. 
 
Regards, 
Eswaran 



ET Eswaran Thirugnanasambandam Syncfusion Team January 31, 2022 03:45 PM UTC

Hi Albert Ruff, 
 
We have checked the reported problem “[iOS] Tap gesture is not get working for UpDown custom view” in our source and confirmed it as a defect. So, logged a bug report for this. You can keep track of the bug from the feedback portal below.  
 
 
NOTE: The provided feedback link is private, and you need to login to view this feedback. 
 
We will include the fix in our upcoming weekly NuGet which is expected to be rolled out on February 15, 2022. If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards,  
Eswaran. 



ET Eswaran Thirugnanasambandam Syncfusion Team February 15, 2022 08:02 PM UTC

We have fixed the reported issue “[iOS] Tap gesture is not get working for UpDown custom view and the fix is included in our weekly NuGet of February 15, 2022.  
  
NuGet Version: v19.4.0.52 
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  


Loader.
Up arrow icon