Hi,
Like Demo https://demos.telerik.com/kendo-ui/scheduler/timeline,
I want to change field start validation message when field input value is empty,
Like this:
start: { type: "date", from: "start", required: {message: "my validation message"} }
It's not work....
Thank you very much for your help.
Hi,
Demo is http://dojo.telerik.com/UgELisOy
In above demo,
var remoteValidator = {
valid: false,
initiated: false,
check: function(element, validator) {
remoteValidator.initiated = true;
//simulate Ajax
setTimeout(function() {
//TODO: set to true if valid
remoteValidator.valid = true;
validator.validateInput(element);
remoteValidator.initiated = false;
}, 1000);
}
};
The form cannot be submitted normally.
Thank you for your help!
Hi,
In this demo: https://demos.telerik.com/kendo-ui/scheduler/timeline
How can I elegantly get field value that is DropDownList type in customize validation function , for example: roomId or attendees.
Thank you very much for your help.
Hi,
In this demo: https://demos.telerik.com/kendo-ui/scheduler/timeline
I have a drives me crazy question:
For example, I code customize validation function for field roomId and field attendees in schema-model-fields. In roomId customize validation function, How can I manual programming trigger attendees's customize validation function for edit-form?
Thank you very much for your help.
Hi, i have a grid which when creating an new element, the back-end verify if all the user data is correct and saves it in the db. Instead, if it have some errors will return which field has the error and the message about why failed.
My question is, how can i show this message like it was a validation? Like the required validation with the yellow tooltip above the cell (see image below)
My grid is in "inline" editing mode.
Thanks for your help!
This has been asked before here: https://www.telerik.com/forums/kendo-validator---focus-on-first-invalid-field
However, the given solution does not work with a kendoTextBox.
If you use the example given in the previous post (http://dojo.telerik.com/ukoLUJ/4?_ga=2.193348590.2100086651.1638809904-402941789.1637689930) and replace the inputs with kendoTextBoxes and update the libraries to the latest version, they will not gain focus when invalid.
Any help would be appreciated, thanks,
Kevin
I have a grid that has some data, and when I press an "edit" button, I want a wizard with forms to edit the contents over multiple pages. Because of all the binding, I figured I could re-use the same wizard and popup and just reload the data inside. This works pretty well until I add validation. For some reason setting model data results in the value being NULL inside the model.
const model = discountWizard.steps()[0].form.editable.options.model;
model.set("requiredField", "required"); // required: true in form
model.set("optionalField", "optional"); // required: false in form
// results in
dirtyFields: Object { requiredField: false, optionalField: true }
optionalField: "optional"
requiredField: null
I've added a reproducer in Dojo: https://dojo.telerik.com/eQoGApIL
How can I fix this?
On a sidenote, the reset button doesn't seem to do anything by default, is that intended?