Textbox Validation is not working with Template

2 posts, 0 answers
  1. Atul
    Atul avatar
    13 posts
    Member since:
    Mar 2012

    Posted 24 Jul 2014 Link to this post

    Hi All,

    I have a textbox inside template which i want to display on Kendo Popup, everything is working except validation. 

     <script type="text/x-kendo-template" id="popup-template">
         <div>
               @Html.TextBoxFor(m => m.Address)
            </div>
    </script>

    which will render below html tag for textbox 

    <input class="k-textbox" data-val="true" data-val-length="Address  must have a length between 1 and 100 characters." data-val-length-max="100" data-val-length-min="1" data-val-regex="Address must only contain alpha-numeric characters." data-val-regex-pattern="^[A-Za-z\d]*$" id="Address " name="Address " placeholder="Type Address " type="text" value="">

    Any specific reason why validation is not working here. Please correct me if I am doing anything wrong here.

    Thanks-

  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 28 Jul 2014 Link to this post

    Hi Atul,

    This post will be closed as it is duplicate of the thread in which I already replied.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top