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

Validation not working on Custom Template

5 Answers 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 16 Oct 2015, 03:30 PM

Hello,

 I have a custom template and I am trying to have a validation for that template.

Dojo is here. http://dojo.telerik.com/@balaji/aMoBA

I have a validation on the Price column (required:true). 

But when I delete the Price value from cell and tab out, am not able to see the nice little tooltip provided by kendo. am I missing something?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 20 Oct 2015, 09:59 AM
Hi Balaji,

Note that when setting required validation for filed in the DataSource the validation will fire in case you are using the built in editing mechanism of the Grid. In your case when Template with input is used you should set the input itself to be required like this:
http://dojo.telerik.com/EquZe

Regards,
Maria Ilieva
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Balaji
Top achievements
Rank 1
answered on 22 Oct 2015, 04:32 PM

Hello Maria,

 Did you give me a wrong link? I don't see an option for editing in that grid.      

 

Thanks.

0
Maria Ilieva
Telerik team
answered on 26 Oct 2015, 09:19 AM
Hello Balaji,

Excuse me for sending the wrong link.

Here is the correct one:
http://dojo.telerik.com/ONEMa

Regards,
Maria Ilieva
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Balaji
Top achievements
Rank 1
answered on 26 Oct 2015, 07:49 PM

Hello Maria,

Thanks for your reply. I want to have min,max validation. I tried to edit the sample example by having the constraints for min and max. It did not work. Also I would like to have a custom function which will do some validation and display the tooltip. The link you provided did not display the tooltip message. 

I have updated the example http://dojo.telerik.com/UKIKA with a function for validation (inside the validation attribute) and min,max attributes . Can you tell me what I am doing wrong here?

 Thanks.

0
Maria Ilieva
Telerik team
answered on 28 Oct 2015, 09:34 AM
Hello Balaji,

Note that the input type should be set to "number" in order to be able to set max and min validation:

http://dojo.telerik.com/UKIKA/2

As for the tooltip functionality this is not supported out of the box and you can manually handle the input blur event and show the required custom tooltip.

Regards,
Maria Ilieva
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Balaji
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Balaji
Top achievements
Rank 1
Share this question
or