This is a migrated thread and some comments may be shown as answers.

RadNumeric - disable keydown decrease the value

3 Answers 34 Views
Input
This is a migrated thread and some comments may be shown as answers.
Koen
Top achievements
Rank 1
Koen asked on 09 Mar 2016, 10:21 AM

Hi,

I am using the radgrid to provide my customer with a data entry form. The customer is very used to excel and the way it works, and like similar functionality. Right now the RadGrid is pretty much doing what I want, I can move around with the keys in the grid to different rows. However, as most of the data is numeric, when I press the down key I both go down in the grid AND the value of the numeric field I am on at that point decreases. Is there an easy way to disable that if I press the down key on a numeric field that the value decreases by one?

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 10 Mar 2016, 01:17 PM
Hi Koen,

If you would like to use a control that resembles Excel then you should take a look at the RadScheduler control.


With that said, I am attaching a sample project where the arrow keys can be used to navigate through the cells of RadGrid. Also one column is using numeric inputs. Give the sample a try and see how it works for you.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Koen
Top achievements
Rank 1
answered on 10 Mar 2016, 01:29 PM
Hi Viktor, thanks a lot, I will take a look at the project. I looked at the spreadsheet example, and this is exactly what my customer wants... IF :) I can lock all the cells apart from the cells where data needs to be inserted. I have seen that the numeric validation etcetera works :)
0
Viktor Tachev
Telerik team
answered on 11 Mar 2016, 09:21 AM
Hello Koen,

The Spreadsheet control gives the option to disable some of the cells. Check out the get_enabled() and set_enabled() methods described in the article below. You can use similar logic to keep only some of the cells enabled.



Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Input
Asked by
Koen
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Koen
Top achievements
Rank 1
Share this question
or