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

Add validation to Insert Button

1 Answer 163 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vivekkumar
Top achievements
Rank 1
Vivekkumar asked on 03 Dec 2015, 11:49 AM

Hi,

I need to add validation on Insert button while adding Hyperlink to text. Validation will be like, URL for hyperlink should start with either http or https.

Please refer the attached image

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 07 Dec 2015, 02:53 PM
Hi,

The desired behavior is not supported out if the box and custom code would be required. For example you can use the "execute" event of the editor to get the executed command and attach Kendo UI validator to it's dialog. You should also attach custom "click" handlers to the "Insert" button in which to validate the form and close the command. Please check the example below:

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