Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > Cursor position in the DateTimePicker

Not answered Cursor position in the DateTimePicker

Feed from this thread
  • Kendrew avatar

    Posted on Jun 8, 2011 (permalink)

    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

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Jun 15, 2011 (permalink)

    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

    Reply

  • Kendrew avatar

    Posted on Jun 15, 2011 (permalink)

    Thanks, but what happens if the user used the keyboard and not the mouse?

    Thanks

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Jun 17, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > DatePicker > Cursor position in the DateTimePicker
Related resources for "Cursor position in the DateTimePicker"

WPF DatePicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]