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

Cursor (Caret) position

1 Answer 65 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 14 Oct 2009, 04:03 PM
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

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Oct 2009, 02:39 PM
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.
Tags
Input
Asked by
Ian
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or