This is a migrated thread and some comments may be shown as answers.

Kendo Grid Edit Date Field Validation Message

4 Answers 275 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vaishali
Top achievements
Rank 1
Vaishali asked on 20 Jul 2019, 12:26 AM

Hi,

I am trying to show validation error message on the grid (for example if the start date is greater than end date)- https://dojo.telerik.com/OjAnEJoV/2 Can you please help? Thanks in advance

4 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 23 Jul 2019, 01:59 PM
Hi Vaishali,

You can add a validation message as the value of the attribute "data-endvalidation-msg" of the input text. You can do it like this:

input.attr("data-endvalidation-msg", "Start date can not be later than end date");

I have revised your demo. Please see below:


Hope this helps and please contact us back in case of any questions.

Regards,
Nikolay
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vaishali
Top achievements
Rank 1
answered on 24 Jul 2019, 04:46 AM
Thanks, This works
0
Vaishali
Top achievements
Rank 1
answered on 20 Aug 2019, 07:32 PM

I am facing problem with css. The validation message is getting hidden in the row below. Please find attached screenshot.

0
Nikolay
Telerik team
answered on 22 Aug 2019, 10:34 AM
Hi Vaishali,

What you have described happens because the element's content is too big to fit in its block formatting context and so it gets hidden by its enclosing elements.
A quick solution for this would be the below CSS:
 
#grid td{
  overflow:visible;
}

If there is anything else, we could help further, please contact us back.
 
Regards,
Nikolay
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Vaishali
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Vaishali
Top achievements
Rank 1
Share this question
or