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

Change text selection behavior in RadDatePicker date textfield

2 Answers 243 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Elvis
Top achievements
Rank 1
Elvis asked on 07 Sep 2016, 07:28 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 09 Sep 2016, 05:37 AM
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.
0
Elvis
Top achievements
Rank 1
answered on 29 Sep 2016, 07:29 AM

Hi Eyup,

 

It works perfectly. Thanks!

 

Regards,

Elvis

Tags
Calendar
Asked by
Elvis
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Elvis
Top achievements
Rank 1
Share this question
or