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

[Solved] Select Text on Entry after SetFocus

1 Answer 78 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David Henry
Top achievements
Rank 1
David Henry asked on 05 Mar 2010, 11:44 PM
I have several textboxes and comboboxes in an UpdatePanel all with AuotPostBack set.  In teh TextChanged sub I do some processing tehn want to conditionally set focus to a comb box.  I do this by calling ScriptManager1.SetFocus(cbotype_1.ClientID).  When I do this then the text is not selected (highlighted) the same as it would have been by the user tabbing into the control.  Any ideas how I can do this with server side code if possible?

Regards
David

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 10 Mar 2010, 06:46 PM
Hi David Henry,

Please try using 

ScriptManager1.SetFocus(cbotype_1.ClientID + "_Input");

to focus the input as otherwise you are focusing the DIV element of the RadComboBox.

Greetings,
Simon
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.
Tags
ComboBox
Asked by
David Henry
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or