Example #1
0
        public override void Destroy()
        {
            if (tabs != null)
            {
                tabs.Destroy();
            }

            if (toolbar != null)
            {
                toolbar.Destroy();
                toolbar = null;
            }

            if (validator != null)
            {
                this.ById("Form").Remove();
                validator = null;
            }

            if (!isPanel)
            {
                element.Dialog().Destroy();
            }

            jQuery.Window.Unbind("." + this.uniqueName);

            base.Destroy();
        }
Example #2
0
        public override void Destroy()
        {
            if (tabs != null)
            {
                tabs.Destroy();
            }

            if (toolbar != null)
            {
                toolbar.Destroy();
                toolbar = null;
            }

            if (validator != null)
            {
                this.ById("Form").Remove();
                validator = null;
            }

            if (!isPanel)
            {
                element.Dialog().Destroy();
            }

            base.Destroy();
        }
Example #3
0
        protected virtual void InitValidator()
        {
            var form = this.ById("Form");

            if (form.Length > 0)
            {
                var valOptions = GetValidatorOptions();
                validator = form.As <jQueryValidationObject>().Validate(Q.Externals.ValidateOptions(valOptions));
            }
        }
Example #4
0
 public static void ValidatorAbortHandler(jQueryValidator validator)
 {
 }
Example #5
0
 public static bool ValidateElement(this jQueryValidator validator, Widget widget)
 {
     return(validator.ValidateElement(widget.Element[0]));
 }