I am wondering if anyone could point me to an example of using attribute ValueRange in a model for DataForm control.
The following usage is not allowed.
[ValueRange(MaxValue=100, MinValue=0)]
public int Quality
{
get;
set;
}
1 Answer, 1 is accepted
0
Ivaylo Gergov
Telerik team
answered on 11 Feb 2015, 02:51 PM
Hi,
The ValueRange attribute requires its MaxValue and MinValue properties to be of type double. For example:
[ValueRange(MaxValue = 100.0, MinValue = 0.0)]
Please, let me know should you need further assistance.
Regards,
Ivaylo Gergov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.