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

Wrong code in EditorTemplates of 2011 Q3

1 Answer 21 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henry
Top achievements
Rank 1
Henry asked on 06 Jan 2012, 02:44 AM
Hi,

I found a wrong code in C:\Program Files\Telerik\Extensions for ASP.NET MVC Q3 2011\EditorTemplates\Integer.ascx
and C:\Program Files\Telerik\Extensions for ASP.NET MVC Q3 2011\EditorTemplates-Razor\Integer.cshtml

It causes no correct value displayed when set .Value(1000) property. I marked the wrong part as bold below:

@(Html.Telerik().IntegerTextBox()
        .Name(ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
        .InputHtmlAttributes(new { style = "width:100%" })
        .MaxValue(int.MinValue)
        .MaxValue(int.MaxValue)
        .Value(Model) 
)

Henry


1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 06 Jan 2012, 09:08 AM
Hi,

 
This is a known issue, which is already addressed and the fix will be available in the service pack scheduled for the begining of the January 2012

All the best,
Georgi Krustev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
NumericTextBox
Asked by
Henry
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or