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

How can move the cursor to the end of text

4 Answers 407 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
c mutex
Top achievements
Rank 1
c mutex asked on 23 Aug 2010, 10:07 AM
use ComboBoxStyle.DropDown
After select one item on combobox, then input through keyboard,  the cursor auto move the the begin of text. how to move the cursor to the end of the text? thanks

4 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 26 Aug 2010, 03:11 PM
Hello c mutex,

Thank you for contacting us.

I am afraid I do not understand your scenario completely. Here are the steps I followed:
  1. Set the DropDownStyle property to DropDown and populate the RadComboBox with items.
  2. Select the first item (ComboBoxItem1) from the dropdown
  3. Once ComboBoxItem1 is selected, it appears in the editor and the whole text is selected, so that when you start typing, the selected text is substituted with the keyboard input.
If this is the behavior you would like to customize, please note that internally we are using a standard TextBox. The default behavior of this control does not allow such modifications.

However, if this is not your case, please provide more details about your scenario. In case you have performed any customizations of your RadComboBox instance, please send us code snippets and detailed explanation.
 
Let me know if I can assist you further.

Best wishes,
Boryana
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
pavithra
Top achievements
Rank 1
answered on 28 Aug 2010, 07:28 AM
I'm using ASP.NET. I have the script set up to move the focus to a particular control (textbox) when the page posts back. However, I want the cursor to be placed at the end of the text that is currently in the textbox. Right now, the cursor is always located at the beginning of the textbox. Is there a way to place the cursor at the end of the textbox? Thanks for any and all help.
0
Nikolay
Telerik team
answered on 30 Aug 2010, 09:56 AM
Hi pavithra,

Your question does not seem to be related to RadControls for ASP.NET directly. If your question concerns the generall ASP.NET principles and controls, please address your question to the appropriate MSDN forums.

If, however, your question concerns RadControls for ASP.NET, please post your enquiry in the appropriate Telerik ASP.NET section. This will allow the those who are interested in your topic to find the answer more easily.

Thank you for your understanding.

Greetings,
Nikolay
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
Nin
Top achievements
Rank 1
answered on 13 Dec 2017, 01:06 PM

You can do it following:

SendKeys.Send("{End}");

Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
c mutex
Top achievements
Rank 1
Answers by
Boryana
Telerik team
pavithra
Top achievements
Rank 1
Nikolay
Telerik team
Nin
Top achievements
Rank 1
Share this question
or