Jan 22, 2016, 9:30 AM
[CLOSED] Formpanel dynamically change 'AllowBlank' and ValidityChange
Good Moring
I need to add and remove the AllowBlank attribute on Textfields on a Formpanel.
I do it like that
What can I do to change that behave ?
Thanks
Peter
I need to add and remove the AllowBlank attribute on Textfields on a Formpanel.
I do it like that
If Convert.ToString(cboDBSchema.Value) = "1" Then
TextFieldSchemaName.Hide()
TextFieldSchemaName.AllowBlank = True
TextFieldSchemaName.IndicatorText = String.Empty
Else
TextFieldSchemaName.Show()
TextFieldSchemaName.AllowBlank = False
TextFieldSchemaName.IndicatorText = "*"
End If
That works so far, but the ValidityChange Handler doesn't detect this changes ? In my example, the save button disable state on the form is triggered by this handler and the button stays disabled in case of the first condition (Value =="1").What can I do to change that behave ?
Thanks
Peter
Last edited by Daniil; Feb 03, 2016 at 6:58 AM.
Reason: [CLOSED]