Cursor (Caret) position

2 posts, 0 answers
  1. Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 14 Oct 2009 Link to this post

    Hi Telerik Team,

    Is there anyway to get the cursor position (caret position) in the server side code (C#) rather then in javascript? Also is there anyway to find out what text a user has selected using server side code?

    I basically have 2 buttons that when clicked do certain things:

    1. Needs to find the cursor position and then select all the text on the line within the text box where the cursor (caret) is placed.
    2. Needs to just be able to find all the text that a user has selected

    there is a third button but this just gets all the text in the text box and can easily use RadTextBox.Text

    Thanks in advance

    Ian Ramsay
    Programmer
    Imagered Ltd
    http://www.imagered.co.uk
  2. Dimo
    Admin
    Dimo avatar
    8452 posts

    Posted 16 Oct 2009 Link to this post

    Hello Ian,

    I am afraid that obtaining / manipulating cursor position and selected text on the server is not possible.

    Regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top