Inline Numeric Field Shows Negative Values

2 posts, 0 answers
  1. Basim
    Basim avatar
    5 posts
    Member since:
    Nov 2019

    Posted 22 Jan 2020 Link to this post

    i need to add numeric values in grid with inline add and edit.I use Editor = numeric and it shows only numeric values but i need to block negative values.How can i block negative values
  2. Stefan
    Stefan avatar
    3008 posts

    Posted 22 Jan 2020 Link to this post

    Hello, Basim,

    There are two options in this case:

    1) On the onItemChange event of the Grid, check if the value written in the numeric field is less then 0 and if it is, do not change the state.

    2) Use a custom NumericTextBox editor in the Grid and set its min value to 0: - custom editor

    - - min value.

    I hope one of these two approaches proves helpful.

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