[ kendo scheduler ] field validation trigger manually

1 Answer 238 Views
Scheduler Validation
sun
Top achievements
Rank 2
Iron
Iron
Iron
sun asked on 23 May 2022, 05:43 PM | edited on 23 May 2022, 05:52 PM

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. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 26 May 2022, 11:06 AM

Hello,

The model's definition accepts validation field whether you can set up custom tools: https://docs.telerik.com/kendo-ui/api/javascript/data/model/methods/define/ 

Here you are a dojo example: https://dojo.telerik.com/@iankodj/ASODEhEs/2

Regards,
Ianko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

sun
Top achievements
Rank 2
Iron
Iron
Iron
commented on 26 May 2022, 03:53 PM

When I find that one field changes, it will also enter the validator of other fields.
Ianko
Telerik team
commented on 31 May 2022, 06:37 AM

You can create a field name check based on the name attribute or the data-bind attribute to properly validate only one field with a custom rule: https://dojo.telerik.com/@iankodj/ASODEhEs/3

However, this is how the Kendo Validator works - it validates all fields against the logic: https://docs.telerik.com/kendo-ui/api/javascript/ui/validator/configuration/rules

sun
Top achievements
Rank 2
Iron
Iron
Iron
commented on 31 May 2022, 04:23 PM

Hi, Ianko

      Thank you very much for your help.

Ianko
Telerik team
commented on 01 Jun 2022, 05:49 AM

You are welcome!
Tags
Scheduler Validation
Asked by
sun
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Ianko
Telerik team
Share this question
or