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 Answers, 1 is accepted
0
Accepted
Deyan
Telerik team
answered on 04 Apr 2013, 07:18 AM
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.