I have following code in my aspx page:
<
tr>
<td >
<p class="style" >
Please enter job posting number:
</p>
</td>
<td >
<telerik:RadNumericTextBox ID="JobPostingNo" runat="server" TabIndex="9" Font-Bold="true" MaxLength="4" Type="Number" MinValue="1" MaxValue="9999" CssClass="textbox" Width="48px" Enabled="false">
<NumberFormat GroupSeparator="" DecimalDigits="0" />
<DisabledStyle Font-Bold="true" BackColor="#EFEFEF" />
</telerik:RadNumericTextBox>
</td>
<td>
<asp:Image ID="JobPNErrImage" runat="server" Width="14px" Height="14px" ImageUrl="~/Image/error-icon.jpg" Visible="false" />
</td>
</tr>
<tr>
<td>
<p class="style">
Have you met all of the criteria outlined in the posting?
</p>
</td>
<td>
<telerik:RadComboBox ID="ddlPost" runat="server" TabIndex="10" AutoPostBack="false" Font-Size="Small" Width="53px">
<Items>
<telerik:RadComboBoxItem Text="Select" Value="" Selected="true" />
<telerik:RadComboBoxItem Text="Yes" Value="Y" />
<telerik:RadComboBoxItem Text="No" Value="N" />
</Items>
</telerik:RadComboBox>
</td>
And here is a code behind file:
RadPanelBar
attestPanel = (RadPanelBar)formPanel.FindItemByValue("principalForm").FindControl("attestationPanel");
RadNumericTextBox jobPostNo = (RadNumericTextBox)attestPanel.FindItemByValue("principalattestaionInfo").FindControl("JobPostingNo");
RadComboBox ddlAprvPost = (RadComboBox)attestPanel.FindItemByValue("principalattestaionInfo").FindControl("ddlAprv");
if (ddlAprvPost.SelectedValue == "Y")
{
jobPostNo.Enabled =
true;
jobPostNo.Focus();
}
else
{
if (jobPostNo.Text.Length > 0)
{
jobPostNo.Text =
string.Empty;
}
jobPostNo.Enabled =
false;
}
My question is: when jobPostNo control is disabled how to shift focus to the next control right after this control.
Thanks so much.