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

Kendo Validator not working when divs have their widths set as 100%;

1 Answer 49 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 12 Dec 2013, 03:07 PM
Hi,
Please refer to the foloowing HTML snippet. I have added the kendo and jquery references properly.
When I remove the percentage values the validator function works properly. But when it is set to percentage it will not work Please help. Thanks in advance
Regards,
Vijay


   <div style="width: 90%; height: 8%; float: left;">
<label id="lblUserName" class="LoginLabel required" for="UserName">
Username:
</label>
</div>
<div style="width: 90%; height: 16%; float: left;">
<input id="txtUserName" type="text" maxlength="100" class="LoginTextBox" 
name="UserName"   placeholder="UserName" required validationmessage="Please enter {0}" />
</div>

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 13 Dec 2013, 12:28 PM
Hello Vijay,

I was not able to reproduce this issue. Please check the following jsBin showing the test example, with width 100% set to the div container:

http://jsbin.com/EzuNiQAw/1/edit

Please tell me if I missed something.

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