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
20
Validate in UltraWebTab
posted

I have used UltraWebTab in my application and in these tabs am unable to use any kind of validation. Please help me with this and let me know where am going wrong, because am unable to use any kind of validation either the Required Field or Custom Validator. Or is there any way that I can validate my checkboxes on the application pages using the infragistics controls itself.

Thanks

 

  • 10
    posted

    You can override the OnPreRender event and assign the propert ControlToValidate of your Validators.

    The property to use is fieldToValidate.UniqueID, something like this.

     

    protected override void OnPreRender(EventArgs e)
            {
                FirstNameRequiredFieldValidator.ControlToValidate = FirstNameTextBox.UniqueID;
                base.OnPreRender(e);
            }