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

DatePicker remember previous date?

5 Answers 818 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Sanjeev
Top achievements
Rank 1
Sanjeev asked on 13 Jul 2015, 08:14 PM

I have couple of DateTimePicker in my ASP.NET project. I am running into issue where DateTime picker keeps remembering old selected date in my MVC page.

Steps:

1) Choose any future date from DateTimePicker control. e.g. 1/1/2020

2) Clear the date in the Textbox so that there is no date value.

3) Now, try clicking on DateTimePicker control, it will show 1/1/2020 instead of present date.

 

Does anyone know how to reset the date to current date once the DatePicker textbox is cleared?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Jul 2015, 11:42 AM
Hello Sanjeev,

The DatePicker widget is designed to clear the selected date in the calendar once the textbox is cleared, but it will not move the calendar to present date. This behavior is intended.

If you would like to navigate the calendar to a specific date, then you will need to do that manually:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sanjeev
Top achievements
Rank 1
answered on 15 Jul 2015, 02:49 PM
Thank you that worked!!
0
Mohamed
Top achievements
Rank 1
answered on 22 Jun 2017, 04:33 PM

Can you put an updated example? the link is not working.

Thanks,

0
Preslav
Telerik team
answered on 26 Jun 2017, 07:32 AM
Hi Mohamed,

We were experiencing issues with our Dojo code services. Now, the link should load as expected.

Please, check the Dojo and let me know if it loads on your side.


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mohamed
Top achievements
Rank 1
answered on 26 Jun 2017, 01:17 PM
it works fine, thanks a lot
Tags
Date/Time Pickers
Asked by
Sanjeev
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Sanjeev
Top achievements
Rank 1
Mohamed
Top achievements
Rank 1
Preslav
Telerik team
Share this question
or