This question is locked. New answers and comments are not allowed.
I am using the following template code
In my model I have a field defined as followed, DataType(Integer) is so it picks up the editor template from above.
When I go to edit a row of data in the grid, the numeric textbox is showing fine, but it allows me to use the "up"/"down" arrows below 0 and higher than 999.
Basically when you use the numeric textbox as a edit template in a grid it is not picking up the range values from the model. Is this standard behaviour or am I missing something?
Also we are using Telerik Extensions for ASP.NET MVC 2 2010.Q3.1110
Thanks
Daniel
<%= Html.Telerik().IntegerTextBox() .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty)) .InputHtmlAttributes(new { style = "width:100%" }) .Value(Model) %>In my model I have a field defined as followed, DataType(Integer) is so it picks up the editor template from above.
[DataType("Integer")] [Range(1, 999)] public int MyNumber{ get; set; } When I go to edit a row of data in the grid, the numeric textbox is showing fine, but it allows me to use the "up"/"down" arrows below 0 and higher than 999.
Basically when you use the numeric textbox as a edit template in a grid it is not picking up the range values from the model. Is this standard behaviour or am I missing something?
Also we are using Telerik Extensions for ASP.NET MVC 2 2010.Q3.1110
Thanks
Daniel