I am using Ultravalidator to validate control if i use Ultravalidator with UltraGridbagLayoutManager then error image display on Upper right corner of panel.
Anything need to be done with control or any setting with UltraValidator control.
Please do reply.
Hi,
UltraValidator should display any error icons next to the control it is validating. The container control should not matter.
I'm not really clear on what you mean, though. What panel are you referring to? The panel the control being validated is in? I can't see how the UltraValidator could be showing the icon on the containing control instead of the actual control or why the GridBagLayoutManager could have any effect.
Here we have one GroupBox On that i had placed Ultrapanel and i used UltraGridBagLayoutManager, In that UltraGridBagLayoutManager's ContainerControl contains ClientArea of Ultrapanel Like
UltraGridLayOutManager1.ContainerControl = UltraPanel1.ClientArea.
Here i am add container control as panel because we wqant Scrollbar, and fill controls on panel using UltragridBagLayOutManager. At filling time set validator control for all added controls at run time, It validate controls but error image Displayed on Upper right corner. you can see in the attachment.
I have attached ScreenShot. int hat First Two textbox validate with required fields so when i press save it validate those both controls but errorimage displayed on upper Right corner.
Thanks for reply
This is a limitation of the component, which displays the image by adding it to the Controls collection of the validated control's parent. A grid bag layout control automatically reposition controls added to its Controls collection, which conflicts with this UltraValidator functionality.
You can work around this limitation by adding a Panel control to the layout control, then put the control to be validated in that Panel. This will give it a different parent, and when the UltraValidator adds the error image to it, it will appear next to the validated control.