DataForm DataField and numeric

3 posts, 1 answers
  1. Shah Z
    Shah Z avatar
    6 posts
    Member since:
    Jan 2009

    Posted 01 Apr 2013 Link to this post

    Hi...
    how do i make a datafield to allow only numeric values?
    The case where i come from is to use a datafield in a dataform (just like a textbox) that i can enter decimal value (e.g amount field) in it.

    Thanks 

    Shah
     
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 04 Apr 2013 Link to this post

    Hello Shah,

    Thanks for writing and for your question.

    Currently you have two options:

    1. Either define a numeric property on your business object which will make RadDataForm create a NumericUpDown editor for it.

    2. Use a text property and implement validation for the input which allows typing only numeric values.

    I hope this helps.

    All the best,
    Deyan
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Shah Z
    Shah Z avatar
    6 posts
    Member since:
    Jan 2009

    Posted 22 Apr 2013 Link to this post

    thx for this.. :)
Back to Top