Kendo Themed Textbox and Labels

2 posts, 0 answers
  1. Ian
    Ian avatar
    73 posts
    Member since:
    Jun 2013

    Posted 03 Jul 2013 Link to this post

    We are converting an old app to Kendo Web (MVC) to take advantage of the Theme engine so that our designers can control the site much easier than what we have now.

    I noticed there is no TextBox or Label control in Kendo. Is there a way to get TextBoxes like the below one that are themed to the current Kendo UI theme and that also can be validated?

    <input data-val="true" data-val-required="*" id="UserID" name="UserID" type="text" value="" />
    <input data-val="true" data-val-required="*" id="Password" name="Password" type="password" />
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 04 Jul 2013 Link to this post

    Hi Ian,

    In order to achieve the desired outcome you should set k-textbox class to the input elements. I.e.: 

    <input data-val="true" data-val-required="*" id="UserID" name="UserID" type="text" value="" class="k-textbox" />
    <input data-val="true" data-val-required="*" id="Password" name="Password" type="password" class="k-textbox" />
    For working example take a look at this online demo.

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top