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

How to make the cursor move to the first pos when you click in a field

7 Answers 45 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 12 Nov 2008, 10:06 PM
Hi.. I have input control - how can make the cursor go to the first position when a user clicks in the field.
thanks

7 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 13 Nov 2008, 07:55 AM
Hi Jon,

You can use the SelectionOnFocus property of the Input and set it to "CaretToBeginning". More details about this property you can find in this help article.

Greetings,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 13 Nov 2008, 02:44 PM
Hi..
I set the property but it doesn't work - it goes to the position I clicked.
What's wrong with this ? thanks

 

<telerik:RadMaskedTextBox ID="txtZIPCODE" Runat="server" Mask="#####-####"

 

 

Width="75px" TabIndex="11" AutoPostBack="True"

 

 

SelectionOnFocus="CaretToBeginning"

 

 

ontextchanged="txtZIPCODE_TextChanged">

 

 

</telerik:RadMaskedTextBox>

 

0
Missing User
answered on 13 Nov 2008, 04:54 PM
Hi Jon,



I tried to reproduce the described problem by preparing a test project, based on your code, but unfortunately to no avail. Please provide us with your information:
  • What browser do you use and its exact version?
  • What operating system are you running?
  • What version of .NET framework do you use?



Regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 13 Nov 2008, 05:00 PM
ie 7
.NET 3.5
Vista Ultimate

All the control in an ajax panel

thanks
0
Missing User
answered on 13 Nov 2008, 05:23 PM
Hi Jon,


Unfortunately we are still unable to reproduce the problematic behavior you are experiencing. Can you please check the attached project and let me know if I am missing something?

Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 13 Nov 2008, 06:16 PM
Your example behaves the same way!

You click on the 3rd position and cursor remain at the 3rd postion.

???
0
Missing User
answered on 17 Nov 2008, 12:37 PM
Hi Jon The Nerd,


I assume you just use an older version of RadControls for ASP.NET AJAX which causes the problem. Please, give the latest version (Q3 2008) a try and let us know if you need further help.

Greetings,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Jon
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Jon
Top achievements
Rank 1
Missing User
Share this question
or