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

[Solved] DatePicker text maxlength

2 Answers 12 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Srikanth
Top achievements
Rank 1
Srikanth asked on 13 Jul 2012, 01:36 PM
Hi,

Is there any way to provide max length for the 'datepicker' control while user chose to enter date manually in the text box? 

thanks,
Srikanth.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 13 Jul 2012, 02:19 PM
Hi Srikanth,

You can set the maxlength attribute in the DatePicker's OnLoad event.


function applyMaxLength(e) {
    $(this).attr("maxlength", "10");
}


Greetings,
Dimo
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
0
Venkata Prakash Reddy
Top achievements
Rank 1
answered on 13 Aug 2012, 11:56 AM
.InputHtmlAttributes(new { maxlength="10" })

Tags
Date/Time Pickers
Asked by
Srikanth
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Venkata Prakash Reddy
Top achievements
Rank 1
Share this question
or