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

[Solved] IntegerTextBox and unobtrusive client validation

3 Answers 118 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.
ben
Top achievements
Rank 1
ben asked on 27 Dec 2010, 12:47 PM
Hi There,

I have an MVC3 RC2 project with unobtrusive client validation enabled.  The project uses Telerik's MVC with build number 2010.3.1110.340.  I notice the client side validation is not working if the property of the model is tied to an editor user control which contains an IntegerTextBox.  I'm submitting a test project here so you guys can see what I'm trying to do.  The view is called TestForm.  The client validation is working fine if Html.TextBoxFor is used but when Html.EditorFor is used, it does a post back and performs the server validation instead.  This used to work fine before the unobtrusive validation.  Any help is appreciated.  Thanks!

Ben

3 Answers, 1 is accepted

Sort by
0
Brian Roth
Top achievements
Rank 1
answered on 21 Jan 2011, 04:19 PM
We're still experiencing this.  Has anyone else run into this or come up with a solution?  Thanks.

Regards,
Brian
0
Georgi Krustev
Telerik team
answered on 21 Jan 2011, 05:30 PM
Hello,

 I have created a simple test project which shows that the unobtrusive validation is supported with the latest official release of Telerik Components for ASP.NET MVC (version 2010.3.1318).

The sample project is attached to this message.

All the best,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Seeker
Top achievements
Rank 1
answered on 24 Jan 2011, 02:18 PM

Its supported but its not working correctly, when you input a value for instance datetime, client validation works only when you do it twice

Also your EditorTemplates are wrongly set up for required values, they are always filled with a value, why?

For instance, datetime if its required displays today, numberic displays 0, etc. They should not be filled, in order for validation to kick in. 

Tags
NumericTextBox
Asked by
ben
Top achievements
Rank 1
Answers by
Brian Roth
Top achievements
Rank 1
Georgi Krustev
Telerik team
Seeker
Top achievements
Rank 1
Share this question
or