unobtrusive-validation Questions

2

I have created my own conditional validation attribute to validate my MVC model on both the client and the server by inheriting from RequiredAttribute and implementing IClientValidatable. The idea ...

2

Solved

Currently, I have an MVC 3 app using the Razor View engine. I have unobtrusive validation enabled. The problem is that for some reason, on page load, my Edit View is displaying errors for required ...
Vermicelli asked 23/3, 2012 at 0:52

2

Solved

I have a form that has an option to enter dimensions for: Width & Height Width Height And I have two container divs that I hide/show depending on which of the three options is selected:...
Trueblood asked 5/8, 2012 at 12:36

3

I'm trying to do required validation on a list of radio buttons to force the user to select an option to continue. The validation does work but it only outputs metadata on the first radio button an...
Jilleen asked 14/4, 2011 at 12:55

1

I'm looking for a way to implement unobtrusive custom validation for Fluent Validation. According to the documentation, it doesn't seem to indicate it supports unobtrusive validation. Same applies ...

2

Solved

I didn't use jquery.ui's datepicker because I needed to select an entire week and multiple dates under different conditions, so I am using Keith Wood's datepicker in an EditorTemplate for my Date f...

5

Solved

I just realized that when I place a form tag on my layout page, surrounding the RenderBody section, the unobtrusive validation is not being generated. Something like this: @using (Html.BeginForm()...
Statutable asked 14/2, 2011 at 21:6

1

Solved

Is there any way to trigger a specific jquery-unobtrusive rule on one field, when the value in another field changes? I have a form with two date fields (say start/end) on it, with validation that...
Sinner asked 16/5, 2012 at 14:38

1

Solved

I use MVC3 model Validation and Unobtrusive for show validation and try to find some way to clone element and validation. This is My View Code: <div id="d1" class="Addable"> @Html.EditorFor...

2

Solved

I use MVC 3 Model Validation Attributes and jquery unobtrusive to show validation error message also use the script when form submitted return a confirm. So I need to check if the all fields are va...

3

This is a part of my Edit view: <dt> @Html.LabelFor(model => model.MainModel.StartDate) </dt> <dd> @Html.TextBoxFor(model => model.MainModel.StartDate) @Html.ValidationMess...

1

I have a data entry field where I'm gathering notes. The note data element is required for each note. Here's my model: public interface INoteDataEntryViewModel : IMobilePageDataContract { int Cou...
Sokotra asked 6/4, 2012 at 15:59

1

Solved

I need to enable the validation of hidden fields using ASP.net MVC3 unobtrusive validation. The reason behind this is a jquery plugin which hides the original input field to show something fancier...
Hennie asked 14/3, 2012 at 3:26

3

Solved

I've got some dynamically inserted form fields on a page in an MVC3 project. Normally we would add the jQuery validation server-side, but in this case we can't (multiple fields in the UI generate t...
Rondarondeau asked 21/2, 2012 at 23:31

3

Solved

I have this code that triggers when a form is submitted: $("form").submit(function (e) { var geocoder = new google.maps.Geocoder(); var address = document.getElementById("Address").value; geoco...

1

Solved

I have a form containing a date and datetime field: @Html.TextBoxFor(model => model.A, new { @type = "datetime" }) @Html.TextBoxFor(model => model.B, new { @type = "date" }) Model: public...
Kampala asked 15/12, 2011 at 8:10

1

Solved

with version 1.7 everything works ok, all hidden inputs get validated, but with version 1.9 some do and some don't I use asp.net mvc 3 and jquery.validate + jquery.unobtrusive (jquery 1.7.1) this ...
Forfeit asked 19/12, 2011 at 17:37

1

Solved

What are the complete set of Steps Required for client-side unobtrusive validation to work for dynamically inserted form fields? Relevant SO posts ASP.NET MVC 3 unobtrusive client-side validation...
Guan asked 16/12, 2011 at 17:46

2

Solved

We have an in-house developed file/image/document manager plugin for TinyMCE that is still being ported over to jQuery. In the mean time, some of our projects that rely on having these features nee...

3

Solved

I have the following setup in my model: namespace QuickTest.Models { public class Person { [Required] [Display(Name = "Full name")] public string FullName { get; set; } [Display(Name = "Add...
Grimona asked 29/11, 2011 at 13:54

1

Solved

I ask similar question here but in this question I use another implementation, exactly this way the following codes show my implementations: Model: public class Department { public long Id { ge...

1

Solved

I have a form with four fields. I have applied some unobtrusive validations to 3 of them. I want that when all unobtrusive validation have been performed then a jquery function is called, but there...
Kimberli asked 23/11, 2011 at 6:54

2

I'm working on localized mvc3 web application using unobtrusive validation. In web.config I've got : <globalization culture="pl-PL" uiCulture="pl" /> Jquery 1.4.4 and jquery validation 1.6...
Presidium asked 21/5, 2011 at 22:59

3

Solved

I have a value on my model, that must fall within the range of two other values on my model. For example: public class RangeValidationSampleModel { int Value { get; set; } int MinValue { get; ...

1

Solved

I'm working with Steve Sanderson's BeginCollectionItem utility to render a list of objects to be edited in MVC3, and it works great when you're rendering an entire collection from an iterator. My p...
Descendent asked 20/10, 2011 at 16:58

© 2022 - 2024 — McMap. All rights reserved.