Change text selection behavior in RadDatePicker date textfield

3 posts, 1 answers
  1. Elvis
    Elvis avatar
    2 posts
    Member since:
    Apr 2013

    Posted 07 Sep Link to this post

    Hi, i have a RadDatePicker, how can i change the date textfield edit behaviour?

    When I edit my selected date by using the date textfield (not by using the datepicker), when i click on the date textfield, the whole date is highlighted.

    Can I make it not highlight the whole date instead?

    Attached image (1.png) shows that the current behavior. Click once, whole date is highlighted.

    Attached image (2.JPG) is the behavior which I want.

     

    I am using Telerik 2016.2.607.45.

    Thank you.

     

  2. Answer
    Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 09 Sep Link to this post

    Hi Elvis,

    You can use the following property to achieve this requirement:
    <telerik:RadDatePicker ...>
        <DateInput runat="server" SelectionOnFocus="CaretToEnd"></DateInput>
    </telerik:RadDatePicker>

    I hope this will prove helpful.

    Regards,
    Eyup
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Elvis
    Elvis avatar
    2 posts
    Member since:
    Apr 2013

    Posted 29 Sep Link to this post

    Hi Eyup,

     

    It works perfectly. Thanks!

     

    Regards,

    Elvis

Back to Top