This is a migrated thread and some comments may be shown as answers.
Bug: If the property name is "Value" no custom error message is visible (only default)
2 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dominic
Top achievements
Rank 1
Dominic asked on 11 Apr 2012, 10:18 AM
Hello,

if i use a ViewModel with a property named "Value" my custom error message will not shown. Please look at the attached sample, klick add new and save without any values.

Regards,

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Apr 2012, 08:54 AM
Hello Dominic,

 
This is a known issue and it is related with the rendered unobtrusive validation attributes. I will suggest you modify the Integer.cshtml editor template like this:

@(Html.Telerik().IntegerTextBoxFor(m => m)
      .InputHtmlAttributes(new { style = "width:100%" })
      .MinValue(int.MinValue)
      .MaxValue(int.MaxValue)
      .InputHtmlAttributes(Html.GetUnobtrusiveValidationAttributes(ViewData.TemplateInfo.GetFullHtmlFieldName(""), ViewData.ModelMetadata))
      .ButtonTitleUp("erhöht den Wert")
      .ButtonTitleDown("verringert den Wert")
      .EmptyMessage(string.Empty)
)
We will further investigate the issue.

Regards,
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.
0
Sheng
Top achievements
Rank 1
answered on 03 Apr 2013, 06:47 AM
Hello Georgi Krustev :

How to set ComboBox'maxValue with JavaScript?

thank you for your help!

Tags
NumericTextBox
Asked by
Dominic
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Sheng
Top achievements
Rank 1
Share this question
or