Cursor position in the DateTimePicker

4 posts, 0 answers
  1. Kendrew
    Kendrew avatar
    2 posts
    Member since:
    Mar 2011

    Posted 08 Jun 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Jun 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kendrew
    Kendrew avatar
    2 posts
    Member since:
    Mar 2011

    Posted 15 Jun 2011 Link to this post

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

    Thanks
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Jun 2011 Link to this post

    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
Back to Top