Text Entry in DateTimePicker

20 posts, 1 answers
  1. John
    John avatar
    3 posts
    Member since:
    Oct 2010

    Posted 18 Oct 2010 Link to this post

    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
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 18 Oct 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. John
    John avatar
    3 posts
    Member since:
    Oct 2010

    Posted 18 Oct 2010 Link to this post

    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
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 18 Oct 2010 Link to this post

    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
  6. John
    John avatar
    3 posts
    Member since:
    Oct 2010

    Posted 18 Oct 2010 Link to this post

    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
  7. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 18 Oct 2010 Link to this post

    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

  8. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 21 Oct 2010 Link to this post

    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
  9. Brian Manning
    Brian Manning avatar
    11 posts
    Member since:
    Jun 2010

    Posted 27 Oct 2010 Link to this post

    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
  10. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 29 Oct 2010 Link to this post

    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
  11. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 02 Nov 2010 Link to this post

    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
  12. Olivier Galloy
    Olivier Galloy avatar
    2 posts
    Member since:
    Feb 2010

    Posted 01 Dec 2010 Link to this post

    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
  13. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 06 Dec 2010 Link to this post

    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.
  14. george mcnitt
    george mcnitt avatar
    14 posts
    Member since:
    May 2010

    Posted 02 Jan 2011 Link to this post

    This issue still exist in the Q3 2010.1215 addition. Was it overlooked somehow?
  15. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 04 Jan 2011 Link to this post

    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.
  16. Mike
    Mike avatar
    22 posts
    Member since:
    Jul 2008

    Posted 06 Jan 2011 Link to this post

    I'm also seeing this unwanted behavior in Q3 2010.1215.
  17. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 10 Jan 2011 Link to this post

    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.
  18. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 02 Mar 2011 Link to this post

    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?

  19. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 02 Mar 2011 Link to this post

    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
  20. Hilda Kenny
    Hilda Kenny avatar
    43 posts
    Member since:
    Jul 2009

    Posted 03 Mar 2011 Link to this post

    Upgrades are covered up until a certain point. It looks like I have to replace all my RadDatetimePicker controls to the standard .NET controls. 
  21. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 07 Mar 2011 Link to this post

    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!
Back to Top
UI for WinForms is Visual Studio 2017 Ready