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

Cursor position in the DateTimePicker

3 Answers 305 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Kendrew
Top achievements
Rank 1
Kendrew asked on 08 Jun 2011, 08:13 PM
Hi Folks,

I need to be able to get the actual cursor position of the cursor in the text of the DataTimePicker - the SelectionStart and SelectionLength properties that are on the TextBox are not on the RadDatePicker. So, any ideas on how to achieve this?

Thanks
Kendrew

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 15 Jun 2011, 08:39 AM
Hello Kendrew,

You can use instead the MouseMove event of the RadDatePicker and get the cursor position from there.

Hope this info helps.

Kind regards,
Konstantina
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
Kendrew
Top achievements
Rank 1
answered on 15 Jun 2011, 03:59 PM
Thanks, but what happens if the user used the keyboard and not the mouse?

Thanks
0
Konstantina
Telerik team
answered on 17 Jun 2011, 11:45 AM
Hi Kendrew,

You can try using the following code:

radDatePicker.FindChildByType<RadWatermarkTextBox>().CaretIndex


Regards,
Konstantina
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
Tags
DatePicker
Asked by
Kendrew
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Kendrew
Top achievements
Rank 1
Share this question
or