У меня есть вопрос здесь.Как отключить проверку при установленном флажке.я пробовал ValidatorEnable (control, false), он не может работать для меня.
<dxe:BaseCheckBox runat ="server" ID="chkIsChecked" ClientInstanceName ="chkIsChecked">
<ClientSideEvents CheckedChanged="OnSelectionChanged"/>
</dxe:BaseCheckBox>
<dxe:BaseComboBox runat ="server" ID="cboLabour" ClientInstanceName ="cboLabour" ValueType="System.String" ClientEnabled="false" >
<ValidationSettings SetFocusOnError="True" ErrorText="This field is required to fill."
ErrorDisplayMode="ImageWithTooltip" ValidationGroup="RejectReason"
CausesValidation="false">
<RequiredField IsRequired="True" ErrorText="This field is required to fill.">
</RequiredField>
</ValidationSettings>
</dxe:BaseComboBox>
Мой Javascript:
function OnSelectionChanged(s,e)
{
if(chkIsChecked.GetValue())
{
cboLabour.SetEnabled(true);
}
else
{
cboLabour.SetEnabled(false);
cboLabour.SetValue('');
}
}
Спасибо за совет.