kendo-validator

kendoValidator() causes “The field xxx must be a date” error when using DatePicker

本小妞迷上赌 提交于 2020-01-14 03:13:28
问题 Im my MVC5 application selecting date in "dd/MM/yyyy" format causes "The field xxx must be a date" error. On the other hand, if I comment kendoValidator() line as below the error has gone, but in that case I cannot perform client side validation and for this reason I want to use kendoValidator. Here are the code sections related to this control. Entity: [Required(ErrorMessage = "Required field")] [Display(Name = "Start Date")] public DateTime StartDate { get; set; } View: ... <script src="~

kendoValidator() causes “The field xxx must be a date” error when using DatePicker

喜欢而已 提交于 2020-01-14 03:13:21
问题 Im my MVC5 application selecting date in "dd/MM/yyyy" format causes "The field xxx must be a date" error. On the other hand, if I comment kendoValidator() line as below the error has gone, but in that case I cannot perform client side validation and for this reason I want to use kendoValidator. Here are the code sections related to this control. Entity: [Required(ErrorMessage = "Required field")] [Display(Name = "Start Date")] public DateTime StartDate { get; set; } View: ... <script src="~

How to stop multiple kendo-tooltips appearing for the same element during validation

谁说胖子不能爱 提交于 2019-12-11 10:41:22
问题 I'm attempting to use Kendo-Validator and Kendo-ToolTip to show validation messages as a tooltip. The problem I currently have is that multiple validation error messages appear against the HTML element. How do you stop that from happening? Here's the HTML: <div id="example"> <div class="demo-section k-header"> <form id="tickets"> <h3>Book Tickets</h3> <ul> <li> <label for="fullname" class="required">Your Name</label> <div style="display:inline-block"> <input type="text" id="fullname_1" name=

kendoValidator acces to Angular2 component property

社会主义新天地 提交于 2019-12-10 11:49:00
问题 I am using Kendo Upload in my Angular 2 application.I have inject servcie for error message and file permissible size ,but when KendoValidator called, this.service is already undefined . export class MyUpload implements AfterViewInit { private message:string="message error": constructor() { } ngAfterViewInit(): any { $("#files").kendoUpload({ multiple: false }); $("#uploadForm").kendoValidator({ messages: { fileSize: message }, rules: { fileSize: function (e: any) { return ....; } },

Is there a way to change the position of validation message

让人想犯罪 __ 提交于 2019-12-08 02:05:51
问题 Although the validation messages in my project are positioned properly (just on the right side) for Textbox, Dropdownlist, etc. one of them is positioned on the left bottom for Editor and the position cannot be changed. So, is there a way to change the position of validation message for the Editor? I just want to change position of the validation message right side to the editor while not touching the position of the other controls. Any help would be appreciated. View: <script type="text

Is there a way to change the position of validation message

≯℡__Kan透↙ 提交于 2019-12-06 05:29:49
Although the validation messages in my project are positioned properly (just on the right side) for Textbox, Dropdownlist, etc. one of them is positioned on the left bottom for Editor and the position cannot be changed. So, is there a way to change the position of validation message for the Editor? I just want to change position of the validation message right side to the editor while not touching the position of the other controls. Any help would be appreciated. View: <script type="text/javascript"> $(function () { $("form").kendoValidator({ //Hide Kendo validation message and show as tooltip