Add validation to Insert Button

2 posts, 0 answers
  1. Vivekkumar
    Vivekkumar avatar
    3 posts
    Member since:
    Nov 2015

    Posted 03 Dec 2015 Link to this post


    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


  2. Vladimir Iliev
    Vladimir Iliev avatar
    2156 posts

    Posted 07 Dec 2015 Link to this post


    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:

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top