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

DataForm DataField and numeric

2 Answers 98 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shah Z
Top achievements
Rank 1
Shah Z asked on 01 Apr 2013, 04:11 PM
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

Sort by
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.
0
Shah Z
Top achievements
Rank 1
answered on 22 Apr 2013, 01:25 PM
thx for this.. :)
Tags
DataForm
Asked by
Shah Z
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Shah Z
Top achievements
Rank 1
Share this question
or