4 Answers, 1 is accepted
0
Accepted
Hi Jaromin Sycz,
Here is how you can achieve that:
This script will focus the combobox and will place the cursor after the text.
Greetings,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Here is how you can achieve that:
protected void c1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) |
{ |
StringBuilder script = new StringBuilder(); |
script.Append("Sys.Application.add_load(function(){"); |
script.Append("var combo2 = $find('" + RadComboBox2.ClientID + "');"); |
script.Append("combo2.get_inputDomElement().focus();"); |
script.Append("combo2.selectText(combo2.get_text().length, combo2.get_text().length); });"); |
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "comboCursor", script.ToString(), true); |
} |
This script will focus the combobox and will place the cursor after the text.
Greetings,
Veselin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
wnl
Top achievements
Rank 1
answered on 02 Jul 2009, 08:22 AM
Yes, indeed. Thanks:)
0
Rakesh
Top achievements
Rank 1
answered on 06 Dec 2010, 10:11 PM
Hello Telerik Team,
I want to implement the same functionality in Silverlight. For some reason I cant use this radscriptmanager in silverlght. Can you please provide a work-around to place my cursor at the end of the combo-box value?
Thanks
I want to implement the same functionality in Silverlight. For some reason I cant use this radscriptmanager in silverlght. Can you please provide a work-around to place my cursor at the end of the combo-box value?
Thanks
0
Hi Rakesh,
Please check this forum post.
Best wishes,
Yana
the Telerik team
Please check this forum post.
Best wishes,
Yana
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.