knockout-validation Questions
5
I have a page setup with Knockout.js and using Knockout-Validation.
During the page load I put another plugin on a select box which fires a change, which fires the validation. I need to be able to...
Assiduous asked 5/12, 2012 at 14:26
2
Solved
I really like how Eric Barnard's knockout validation lib integrates with observables, allows grouping, & offers custom validator pluggability (including on-the-fly validators). There are a coup...
Chapiter asked 4/10, 2012 at 7:5
6
I'm using Knockout.Validation and I'd like to be able to display an error summary where each line displays the error message (obviously!) and also the field name on the view model related to it, e....
Accumbent asked 8/8, 2013 at 15:0
4
I have a viewmodel for a form that I'm trying to add validation to using knockout-validation.
fromDate: ko.observable(
moment().subtract('days', 1).startOf('day').format(dateFormat)
),
toDate: ...
Backwoods asked 29/1, 2013 at 12:3
3
Solved
I am using Asp.net MVC3 and knockoutjs library. I need to do some client side validation. I am exploring the knockout validation plugin.
So I declare the following ko.observable value in my js co...
Geometrize asked 11/5, 2012 at 13:46
2
How do I implement a max value validation and check if the observable's value is numerical, something like:
self.MyInteger = ko.observable().extend({ numeric: 2 })
.extend({ maxValue: { params: 2...
Merilyn asked 21/3, 2017 at 8:41
1
Solved
I use knockout validation 2.0.3 with entity framework 6.0 and get unexpected validation errors. Here is my workflow:
Step1: (works as expected) Create a new entity with an add-dialog and try to sa...
Treva asked 13/7, 2016 at 8:7
1
Solved
I'm using the following knockout validation plugin: https://github.com/Knockout-Contrib/Knockout-Validation
I want to validate my fields when I click on the "Submit" button, not everytime when I c...
Coquina asked 18/3, 2016 at 12:43
2
Solved
I've created a JSFiddle to help demonstrate my question: http://jsfiddle.net/jeffreyrswenson/CrYWn/5/
Here's what I'd like to see:
Messages should not appear when page loads.
Messages should app...
Candlestick asked 29/1, 2014 at 1:21
1
I am using Knockout a lot and often times I have to write scripts inside the data-bind attributes. Is there any validation tools that I can use on these markup files to validate the javascript insi...
Color asked 27/8, 2015 at 16:26
3
Solved
I am trying to add a simple regular expression validation to one of my observables using Knockout-Validation.
I have the following:
self.ContactPhone = ko.observable().extend({
required: true,
...
Gawk asked 2/4, 2013 at 19:29
3
Solved
I'm using Durandal, which in turn leverages off of Knockout.
I want to be able to Change validation lengths dynamically
Fiddle
The fiddle seems to be behaving slightly different than my "work...
Velure asked 26/6, 2013 at 7:14
3
Solved
I have asp.net mvc3 project where I do a bulk edit on a table with knockout binding. I want to do validations like required and number validations while saving data. Is there any easier way to do k...
Hardee asked 25/1, 2012 at 0:39
1
Solved
check this fiddle:
http://jsfiddle.net/bhzrw01s/
I was trying to do 2 things:
First: Dont validate when the field is empty. I know there is a onlyif option.. but is there something easier?
Seco...
Ugly asked 10/9, 2014 at 16:49
2
I'm using knockout.js and knockout-validation with MVC 4.
I can perform client side validation fine with knockout-validation.
However I need to ensure that any viewmodels posted to my controller ar...
Pepi asked 19/9, 2012 at 8:33
2
I want to unit test my function which basically builds an array of observables from an array of parameters (TypeScript code):
private BuildObservables(parameters: Parameter[]) {
var observables =...
Ellingson asked 10/4, 2013 at 15:11
1
Solved
When binding values to a drop down list and using knockout validation, the error message seems to always display even if my knockout validation settings say messagesOnModified: true.
HTML
<inp...
Eurhythmic asked 2/5, 2014 at 18:28
1
Solved
I'm using the areSame rule from here:
ko.validation.rules['areSame'] = {
getValue: function (o) {
return (typeof o === 'function' ? o() : o);
},
validator: function (val, otherField) {
return...
Folkrock asked 17/3, 2014 at 13:37
2
Solved
Ok.. this is a crazy bug that me and a colleague cannot figure out. Internet Explorer 8 crashes (no console error message). It happens when a knockout observable value is changed using a radio inpu...
Acrogen asked 3/2, 2014 at 19:52
2
Solved
I'm trying to attach validation to a mapped view.
I'm using Knockout Mapping and Validation plugins.
Pseudo-models:
Person {
int Id;
string Name;
Book[] Books;
}
Book {
int Id;
string Name;
...
Ardel asked 18/12, 2012 at 12:48
2
Solved
I am working with knockout validations . I want to display custom message for min and max length .I have tried with some options and I cant able to achieve it.if anyone achieved it already, please ...
Balfour asked 24/2, 2014 at 10:28
1
Solved
I check my view model on submit for validation as described here on SO, actually.
My form has a "Save Progress" action in addition to the "Submit" action. It submits to the server in much the same...
Brochu asked 21/1, 2014 at 17:47
2
Solved
Consider the following piece of code -
var MyObjectModel = function(myObject){
var self = this;
self.myNumber1 = ko.observable(myObject.number1).trimmed();
self.myNumber2 = ko.observable(myObject...
Blades asked 15/1, 2013 at 6:1
2
Solved
I am using this plugin https://github.com/ericmbarnard/Knockout-Validation and i am trying to validate an object that is loaded dynamically.
Javascript:
function VM() {
var self = this;
// This...
Truncation asked 14/12, 2013 at 18:52
2
Solved
I have a situation where I need to validate the max amount of a field in my view model. However the max amount has to be variable and is calculated depending on a UI item selected outside of this m...
Phagy asked 4/12, 2013 at 16:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.