I have a problem in validating controls placed on different TabPages of an UltraTabControl.
Here is an example. I have a form with an UltraTabControl with 2 TabPages. On each TabPage there is an UltraTextbox binded to the same UltraValidator.
The two UltraTextbox are mandatory, so you must fill them with a value or the Validation won't success.
The problem is when, for example, I am on the second Tab and the first Textbox is empty. In this case, when i click on the Check button, the Validation doesn't have success but the MessageBox error is not shown, so actually anything doesn't happen.
Obviously I'd like that the Messagebox error would be shown, regardless of the tab I am when the Check Button is pressed.
Just as an information, the two textbox belong to the same Validation Group
Claudio Di Flumeri
I have 2 questions:
1. How did you make this bright circle near the label's right upper corner?
2. How did you make this yellow triangle on the left side of textbox?
Could you show us a code?
1) The label is a custom control with an Ultralabel and an image in it
2) The yellow triangle appears when you set the UltraValidator-->NotificationSettings-->Image property and the value of the UltraTextbox doesn't met the condition of the Validator associated
Here is an example
'Retrieve the settings that determine' how the TextBox will be
validated.Dim vs As Infragistics.Win.Misc.ValidationSettings =
_Me.UltraValidator1.GetValidationSettings(Me.textBox1)' Turn off
automatic validation so WinValidator will' only validate when the Validate
method is called.vs.ValidationTrigger =
_Infragistics.Win.Misc.ValidationTrigger.Programmatic' Create a
condition that will fail validation if' the text in the TextBox starts with
"ultra".vs.Condition = _New Infragistics.Win.OperatorCondition(
Validate the TextBox.Me.UltraValidator1.Validate(Me.textBox1)
Could you please try setting the following in order to achieve the desired behavior:
ultraValidator1.ValidateHiddenControls = true;
Please do not hesitate to contact us if you need any additional assistance.