I’m currently having an issue with the UltraValidator control; my issue is that the validate control will not validate my textbox controls that are inside a collapsed UltraExpandableGroupBox
Mark
Hi, after coming to a conclusion about the UltraExpandableGroupBox is started to use the UltraValidater in my project but almost instantly was faced with another challenge, the challenge was the validater seams to have a problem when validating UltraMaskedEditBox, to make things simple I have modified your project to include these controls, when you click validate these controls don’t seam to validate???
If the parent control for the TextBoxEditors is not visible (in this case ultraExpandableGroupBoxPanel) than the messages are not shown in the MessageBox. By default the Visible property of ultraExpandableGroupBoxPanel is set to False when the ultraExpandableGroupBox is collapsed. So if you want to have the all messages to be visible all the time when you click Validate button you should set the according ultraExpandableGroupBoxPanel’s visible property to True before you call ultraValidator1.Validate();
Please do not hesitate to ask if you have any further questions.
Thank you for your reply, I have modified your project to try something, if you lunch the project and click validate the message box will appears with 5 messages, now expand the other groupbox that I have added, now click validate you will now get 10 messages.
Thanks Mark
Hello Mark,
I have tried to reproduce your issue unsuccessfully. I am attaching my sample. Click on the Validate button and expand the groupbox and you will see that the textboxes are validated.
Please let me know if I missed something in your scenario.
New form, add a UltraExpandableGroupBox, drop on a couple of UltraText boxes, add the validater with required as Yes, add a button to call the validater, click this button with the UltraExpandableGroupBox collapsed and you will see that these controls in the UltraExpandableGroupBox are not validated.
I can provide a sample if you require but it just takes two seconds to create the above....