I just want to set the focus of a RadTextbox, on change of RadCombobox. I've a master page in which all the Pages are inherited. Can any one help me in this please.
I am not sure where the RadComboBox and RadTextBox are placed in your master - content page respectively. Checkout the code to access controls from masterpage/content page and set focus to textbox.
C#:
protectedvoid RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
//to find control in content page
RadTextBox text = (RadTextBox)this.ContentPlaceHolder1.FindControl("RadTextBox1");
// To find control in master page
//RadTextBox text = (RadTextBox)this.Master.FindControl("RadTextBox1");
My Radtextbox and Razdcombo box is not in my master page they are in seperate page in which the master page is inherited.
I have tried on selectedindex change (txtbox1.focus()) but the focus is not coming.