Telerik Forums
Kendo UI for jQuery Forum
1 answer
83 views

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. 

     

Martin
Telerik team
 answered on 03 Jun 2022
1 answer
103 views
I'm looking at the spreadsheet validation here: https://demos.telerik.com/kendo-ui/spreadsheet/validation
It should that validation rules are set at each individual cell.   We are looking to build this grid dynamically (populating from a database) and that would require iterating through each cell to set validation.  Is there a way to set validation at the column level? 
Neli
Telerik team
 answered on 03 Jun 2022
0 answers
55 views

Hi,

      Method is https://docs.telerik.com/kendo-ui/knowledge-base/remote-validation?_ga=2.30044991.1233608935.1653012997-543877616.1650858150

      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!

                            
sun
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 31 May 2022
1 answer
87 views

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.    

Dimitar
Telerik team
 answered on 26 May 2022
1 answer
157 views

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. 

Ianko
Telerik team
 answered on 26 May 2022
1 answer
82 views

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!

Neli
Telerik team
 answered on 27 Apr 2022
1 answer
100 views

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

Martin
Telerik team
 answered on 09 Dec 2021
1 answer
1.8K+ views
I have a list of checkboxes and I need to validate if at least one is checked. If not, I want one error message to appear for the entire group. That message should appear in a separate <span></span> below the group. I know how to do this with radio buttons but these are checkboxes so they can't all have the same name. I've looked at the other posts on here from 2013, 2015, and 2019 but none of them really answer my question. How would I do something like that?
Neli
Telerik team
 answered on 18 Nov 2021
1 answer
336 views

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?

Neli
Telerik team
 answered on 03 Sep 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?