[ kendo scheduler ]change field validation message for multiselect

3 Answers 117 Views
Editor Scheduler Validation
sun
Top achievements
Rank 2
Iron
Iron
Iron
sun asked on 11 Jul 2022, 06:03 PM

Hi,

     Like Demo https://dojo.telerik.com/ojOwIcIB 

     I want to change field [attendees] validation message when field input value is empty,

     I referred

              https://www.telerik.com/forums/kendo-scheduler-change-field-validation-message 

              and 

              https://dojo.telerik.com/AsAjOdiv

     Like this :

               e.container.find("[data-container-for=attendees] select[data-role=multiselect]").attr("data-required-msg", "New Validation Message!");

     It's not work....

     Thank you very much for your help. 

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 14 Jul 2022, 03:08 PM

Hello, Sun,

A possible approach would be to use a custom editor template where you can define the Attendees MultiSelect as required and define the required message. Here is a small example for reference.

Regards,
Martin
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 14 Jul 2022, 04:42 PM

Hello Martin

     First of all, thank you for your help.

     In the example you gave, it's still no validation message that only red border appeared when sumbit form.

     Is there any way to achieve show validation message without custom editor template? Because I can‘t implement the same template as the original edit dialog css style.

     Thank you very much!

0
sun
Top achievements
Rank 2
Iron
Iron
Iron
answered on 14 Jul 2022, 04:42 PM

Hello Martin

     First of all, thank you for your help.

     In the example you gave, it's still no validation message that only red border appeared when sumbit form.

     Is there any way to achieve show validation message without custom editor template? Because I can‘t implement the same template as the original edit dialog css style.

     Thank you very much!

Martin
Telerik team
commented on 19 Jul 2022, 02:40 PM

The current behaviour is most probably a bug. I will get back to you tomorrow when we will be able to test some changes in the Validator and will let you know if we have fixed the problem or needs to be logged as a bug. 
sun
Top achievements
Rank 2
Iron
Iron
Iron
commented on 20 Jul 2022, 05:24 PM

Hello Martin

      I'm really looking forward to your good news! 

     Your help was very much appreciated. 

Martin
Telerik team
commented on 25 Jul 2022, 08:59 AM

Hi, Sun,

I have logged a new bug report about the validation message in our Feedback Portal. Please follow the item for further development on the matter.

0
sun
Top achievements
Rank 2
Iron
Iron
Iron
answered on 20 Jul 2022, 05:24 PM

Hello Martin

      I'm really looking forward to your good news! 

     Your help was very much appreciated. 

Tags
Editor Scheduler Validation
Asked by
sun
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin
Telerik team
sun
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or