SfNumericTextBox Up/Down Key Control

Hi.

I want to control the Up/Down Key of SfNumericTextBox.
If you input Up/Down Key, the value changes according to the Step value.

Query 1. Can this function be prevented?
Query 2. When using SfNumericTextBox in Templete of grid, if you input Up/Down Key, I want to move Cell focus up/down.
               Batch mode is being used.

Any help to me would be appreciated.

4 Replies 1 reply marked as answer

VN Vignesh Natarajan Syncfusion Team October 16, 2020 04:07 PM UTC

Hi JaeHyeong, 
 
Thanks for contacting Syncfusion support.  
 
Query: “If you input Up/Down Key, the value changes according to the Step value. Query 1. Can this function be prevented? 
 
We have analyzed your query and currently we do not have support to prevent the requested functionality. Workaround also not possible for the requested scenario. 
 
Query2: “When using SfNumericTextBox in Templete of grid, if you input Up/Down Key, I want to move Cell focus up/down. 
 
We have analyzed your query and we can achieve your requirement in Grid by rendering the NumericTextBox control in EditTemplate to bind onkeyup event and calling EditCell() method in it (keyup event) to Edit the next/previous cell. But since the first query cannot be prevented. It will not be possible to maintain the original value one arrow keys. 
 
By default, Enter Key and Shift + Enter Key in edit mode is used to move the cell /  edit action up and downward direction in Grid. Please get back to us if you have further queries.    
 
Regard, 
Vignesh Natarajan 


Marked as answer

JJ JaeHyeong Jang October 16, 2020 10:04 PM UTC

Hi.

Thank you for answer
I'll find another way.

Have a nice weekend.


CM Charles McCulloch June 25, 2024 06:10 PM UTC

As for Query #1, I was able to prevent the arrow keys from changing the value by simply adding Step = 0 to the markup.



PS Prathap Senthil Syncfusion Team June 26, 2024 03:32 PM UTC


Hi Charles,


Thanks for the update,

We are happy to hear that the requirement has been met on your end .We are closing the thread now.


Regards,
Prathap Senthil


Loader.
Up arrow icon