RadNumeric - disable keydown decrease the value

4 posts, 0 answers
  1. Koen
    Koen avatar
    7 posts
    Member since:
    Mar 2016

    Posted 09 Mar Link to this post

    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?

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 10 Mar Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Koen
    Koen avatar
    7 posts
    Member since:
    Mar 2016

    Posted 10 Mar Link to this post

    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 :)
  5. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 11 Mar Link to this post

    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.
Back to Top