I have in my aspx page a form where user fill out all necessary information to sent email.The form contains numerious numbers of Telerik controls.
I have RadComboBox with autopostback = true(this is in the middle of the form).When user select from ComboBox 'Yes' or 'No' it fire event:
protected
void ddlAprv_SelectedIndexChanged1(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
RadPanelBar attestPanel = (RadPanelBar)formPanel.FindItemByValue("principalForm").FindControl("attestationPanel");
RadNumericTextBox jobPostNo = (RadNumericTextBox)attestPanel.FindItemByValue("principalattestaionInfo").FindControl("JobPostingNo");
RadComboBox ddlAprvPost = (RadComboBox)attestPanel.FindItemByValue("principalattestaionInfo").FindControl("ddlAprv");
RadComboBox ddlpost = (RadComboBox)attestPanel.FindItemByValue("principalattestaionInfo").FindControl("ddlPost");
if (ddlAprvPost.SelectedValue == "Y")
{
jobPostNo.Enabled =
true;
jobPostNo.Focus();
}
else
{
if (jobPostNo.Text.Length > 0)
{
jobPostNo.Text =
string.Empty;
}
jobPostNo.Enabled =
false;
ScriptManager1.SetFocus(ddlpost.ClientID +
"_Input");
}
}
Focus goes to the next Box and ask to put some numbers.This is working for IE8
But for IE7 focus is lost and form jump right to the top.
Please help me to resolve this issue.
Thanks