Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1470
Error Icon Alignment & Padding
posted

Hi

We use the UltraValidator Component to notify the user if some entered values are incorrect. But now we got three input fields (Country, ZIP, City) really near together to save space. And now when ZIP and/or City is invalid, the user dont see the error icon because an other control hides it.

So, is it possible to put the error icon inside the control? Like the UltraGrid does?

And why are those two properties on the component itself and not on the individually ValidatonSettings, so i can change it for every control without creating a UltraValidator for every diffrent setting?

And whats up with the ErrorAppearance Property? The properties which i set there, are setted even, when the input value of the field is correct?!

 

Regards

 

  • 69832
    Offline posted

    PV85281 said:
    So, is it possible to put the error icon inside the control? Like the UltraGrid does?

    UltraGrid is able to do this because it handles the cell rendering itself, but we can't draw inside a non-Infragistics control.

    PV85281 said:
    And why are those two properties on the component itself and not on the individually ValidatonSettings, so i can change it for every control without creating a UltraValidator for every diffrent setting?

    You mention two properties here, and I'm not sure what the second one is, but you can specify the error image on a per-control basis by setting the ValidationSettings.NotificationSettings.Image property.

    PV85281 said:
    And whats up with the ErrorAppearance Property? The properties which i set there, are setted even, when the input value of the field is correct?!

    The ErrorAppearance is applied at all times, that is, there is no specific trigger for it. If the value is determined to be invalid by the validation criteria, the ErrorAppearance is applied whenever the control is painted. It should not, however, be applied if the value is determined to be valid, so if you are observing that behavior you can report it as a bug or post a simple sample here and we can take a look.