- Home
- Forum
- Xamarin.Forms
- SFNumericUpDown: Getting the button tap events or getting dynamic stepValues
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
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.
Subject: Cannot post a forum reply
firefox_uz3zfUEzBa
Hi,
thank you for the message and the example. I will try it out.
Regards
Christian Kurz
Thanks for your update.
We will wait until hear from you.
Regards,
Sridevi S.
Subject: AW: Syncfusion Forum [167991] has a new reply - SFNumericUpDown: Getting the button tap events or getting dynamic stepValues
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
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
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.
- 13 Replies
- 5 Participants
-
CK Christian Kurz
- Aug 10, 2021 01:44 PM UTC
- Feb 15, 2022 08:02 PM UTC