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

Text Entry in DateTimePicker

21 Answers 495 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 18 Oct 2010, 06:16 PM
Hello,

I am currently trying to allow the user of a WinForms DateTimePicker to enter text. When they delete the current text in the DateTimePicker and begin to enter the date the DateTImePicker displays nothing, when they finally enter the correct format (e.g. 10/18/2010) the text appears. This text entry behavior seems completely wrong and I am wondering if this is how your control works or if there is a way for me to allow the user to see the text as they type it into the DateTimePicker?

Thanks

21 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 18 Oct 2010, 06:39 PM
Hello John,

No, this is not the current behavior of the RadDateTimePicker, on this control, when you delete the text, it is blank but when you start writing it is showing the MinDateValue date and it is changing that as you type.

If you need any more information, you can refer to the Presentation of the RadDateTimePickereditor element here  and to the presentation of the RadCalendar, the calendar shown by the DateTimePicker here.

Or you can always try these for yourself in order to decide, by downloading a fully working trial of the Telerik Winforms Control Suite here, or you can just access the Samples here.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
John
Top achievements
Rank 1
answered on 18 Oct 2010, 06:49 PM
Emanual, Thanks for the quick reply, I have read up on the features of the control and have tested the samples and they display this beahvior.

Can you give me some options on how to allow the user to have the ability to choose a date or enter a date into the field? I need to offer both scenarios in the same control. I am guessing that the use of the MaskedText field and a calendar control would do the job, could you give me some best practices related to creating these kind of controls using the available Telerik WInForms controls?

Thanks
0
Emanuel Varga
Top achievements
Rank 1
answered on 18 Oct 2010, 07:36 PM
Hello again John,

What do you mean by creating this kind of control, there is actually a control inside the Telerik suite called RadDateTimePicker (which internally uses a MaskedEditBox and a RadCalendar).
In essence is the same as the windows DateTimePicker control, but it is themable and more intuitive at least in my point of view.

You can download a fully working trial version of the controls so you can test it by yourself.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
John
Top achievements
Rank 1
answered on 18 Oct 2010, 08:17 PM
Emanuel,

I am using the RadDateTimePicker, it is data bound to an object in the UI, when the user enters the field they hit the delete key and the text is gone, now as they enter the text nothing displays in the controls field until the last number of the year is entered. Secondly if the user does not hit the delete key and begins to enter text such as "10/18/"  the control actually removes the beginning text when entering the "2010" part of the date (see attached pictures). This control should at least act like the original WinForms DateTimePicker which allows the entry of a date in its entirety (e.g. 10/18/2010).  

I am surprised that the control will not display the text as you type it, as this is a large seperation from functionality in the original WinForms DateTimePicker. In light of this I wondering what my options for allowing the user to tab into the RadDateTimePicker and begin typing text, while viewing the progress of their text entry into the MaskedEditBox field because this functionality is not occurring.

Thanks
0
Emanuel Varga
Top achievements
Rank 1
answered on 18 Oct 2010, 08:50 PM
Yes, I know about the disappearing text when you have entered the entire date by hand, there is a bug somewhere and they have scheduled an internal fix (very soon i hope)... that's why it's not behaving as expected

0
Stefan
Telerik team
answered on 21 Oct 2010, 02:33 PM
Hello John, 

Thank you for writing. 

Emanuel is right, currently we have an issue with RadDateTimePicker. Please have in mind that we are going to do our best to address this issue in the upcoming Q3 2010 release, which is due in the first half of November. 

However, if this is a show stopper for you, please open a support ticket and request the internal build that addresses this issue. We will provide you with it right away.

I hope you find this information helpful. If there is anything else I can assist you with, do not hesitate to contact me.
 
Regards,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Manning
Top achievements
Rank 1
answered on 27 Oct 2010, 05:50 PM
Hey there,

I've got a DateTimePicker that's set to ShowUpDown==true and Format==Time.  Is there any way to input text once it's gone?  Not even the up and down arrows seem to do anything once the text is cleared. 

To clear the text I handled the KeyDown event and when the delete key is pressed I used the SetToNullValue() method.

Thanks
0
Emanuel Varga
Top achievements
Rank 1
answered on 29 Oct 2010, 09:27 PM
Hello,

Sorry for the very late reply but I've missed this thread...

I would suggest something, not sure if it works, but it should,
Instead of calling SetToNullValue() inside the event, you could try just assigning to the SelectedDate the MinDateValue, that way you should have 00:00 in the dropdown (instead of a blank time editor) and the buttons should work.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
Stefan
Telerik team
answered on 02 Nov 2010, 09:34 AM
Hello Brian, 

I have tried to reproduce the described behavior using version 2010.2.10.914 which is Q2 2010 SP2 of RadControls for WinForms, but with no avail. I have added RadDateTimePicker to a form and set the following properties:
public Form1()
{
    InitializeComponent();
    radDateTimePicker1.ShowUpDown = true;
    radDateTimePicker1.Format = DateTimePickerFormat.Time;
    radDateTimePicker1.KeyDown += new KeyEventHandler(radDateTimePicker1_KeyDown);
}
 
void radDateTimePicker1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyData == Keys.Delete)
    {
        radDateTimePicker1.SetToNullValue();
    }
}

Now after clearing the value with the delete key I am able to enter new value both through keyboard and by using the mouse. 

However, in this version we do experience some issues with RadDateTimePicker, which we are going to address in the upcoming Q3 2010 version of our controls. You can expect the new version before mid November.

Meanwhile, if this issue is a showstopper for you and you can not wait until the next release, please open a support ticket with a sample project where I can see the described issue. This will allow me to investigate this case and provide you with adequate assistance. 

Kind regards,
Stefan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Olivier Galloy
Top achievements
Rank 1
answered on 01 Dec 2010, 05:50 PM
Hello,

We have the same problem as that described by John on october 18.
(When  the user enter text,   the control actually removes the beginning text when entering the "year" part of the date)
Could you confirm that this issue is well solved in the Q3 2010 release ?

Thanks
Olivier
0
Stefan
Telerik team
answered on 06 Dec 2010, 11:27 AM
Hello Olivier Galloy,

Thank you for contacting me.

I am writing to confirm that the issue reported in the first post of this thread is resolved in the latest version of RadControls for Winfroms (Q3 2010).

Let me know if you need any further information.

I assume
Regards,
Stefan
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
0
george mcnitt
Top achievements
Rank 1
answered on 03 Jan 2011, 02:29 AM
This issue still exist in the Q3 2010.1215 addition. Was it overlooked somehow?
0
Stefan
Telerik team
answered on 04 Jan 2011, 10:43 AM
Hello george,

In my tests the described issue with the disappearing text when entering the year in RadDateTimePicker is resolved. For this reason I would like to kindly ask you to prepare a sample project which demonstrates this behavior on your side and attach it to a new support ticket. This will allow us to verify your case and provide you with an adequate response.

I am looking forward to your project.
 
Greetings,
Stefan
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Mike
Top achievements
Rank 1
answered on 06 Jan 2011, 06:09 PM
I'm also seeing this unwanted behavior in Q3 2010.1215.
0
Stefan
Telerik team
answered on 10 Jan 2011, 10:18 AM
Hi Mike,

As I mentioned, in my tests with our latest version this issue does not appear. Therefore, I would like to kindly ask you to prepare a sample project that demonstrates it and open a new ticket where you can attach this project. We will investigate this case locally and we will provide you with further assistance.
 
Best wishes,
Stefan
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Hilda Kenny
Top achievements
Rank 1
answered on 02 Mar 2011, 05:22 PM
Hi,
I am on 2010 Q2 SP 2.  I also have these issues, and was looking to get 2010 Q3 or even the latest but my license has expired. Do I really have to purchase another license to get the latest to fix all of my issues?

0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 02 Mar 2011, 05:34 PM
Hello Hilda,

As far as I know, major upgrades are covered by an existing license. Please refer to
Purchase/Upgrades and the License Agreement for more information
Regards,
Richard
0
Hilda Kenny
Top achievements
Rank 1
answered on 03 Mar 2011, 01:31 PM
Upgrades are covered up until a certain point. It looks like I have to replace all my RadDatetimePicker controls to the standard .NET controls. 
0
Stefan
Telerik team
answered on 07 Mar 2011, 04:27 PM
Hello Hilda,

Thank you for writing back.

Like Richard said, major updates are covered by an active license. With your current license you are only eligible to download minor versions (ServicePacks and internal builds). In order to continue getting uninterrupted support services and downloading latest versions of our controls, you need to renew you license subscription. Later this month we are going to release Q1 2011 which will bring many improvements and innovations in the WinForms suite. For more information about the new features, you can follow our Roadmap for WinForms.

Should you need additional information, do not hesitate to write back.

Greetings,
Stefan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Pradeep
Top achievements
Rank 1
answered on 26 Jun 2018, 07:01 AM

Hello,

Im using raddatetime picker in my webapp and i need to show it in the windows form using webbrowser, but the problem is im not able to extend the width of the DateInput field where the date is shown. Please help to get out of this.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Jun 2018, 08:36 AM
Hello, Pradeep,   

According to the provided information, I am not sure that your question is related to the Telerik Ui for WinForms suite. WebBrowser is a standard Microsoft control which enables the user to navigate Web pages inside your form. Your question is more relevant to general programming forums like StackOverflow and MSDN

I hope this information helps.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
John
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
John
Top achievements
Rank 1
Stefan
Telerik team
Brian Manning
Top achievements
Rank 1
Olivier Galloy
Top achievements
Rank 1
george mcnitt
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Hilda Kenny
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Pradeep
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or