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

Kendo Themed Textbox and Labels

1 Answer 1170 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 03 Jul 2013, 04:55 PM
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" />

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 04 Jul 2013, 02:55 PM
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!
Tags
General Discussions
Asked by
Ian
Top achievements
Rank 2
Answers by
Iliana Dyankova
Telerik team
Share this question
or