Update of /cvsroot/magicajax/magicajax/Core/UI/Controls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13526/magicajax/Core/UI/Controls
Modified Files:
Tag: STABLE
AjaxPanel.cs
Log Message:
Fix that sets the 'EnableClientScript' property of all validators inside a AjaxPanel to 'false' for NoStore mode. This solves the clientside validation script errors.
+
Fix for the clientside WaitElement. Now works for IE5.5, IE6 and FireFox.
Index: AjaxPanel.cs
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/UI/Controls/AjaxPanel.cs,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -C2 -d -r1.26 -r1.26.2.1
*** AjaxPanel.cs 30 Nov 2005 12:22:29 -0000 1.26
--- AjaxPanel.cs 2 Dec 2005 13:12:41 -0000 1.26.2.1
***************
*** 242,245 ****
--- 242,251 ----
Page.RegisterHiddenField (ControlCollectionState.GetControlFingerprintsField(this.ClientID), String.Empty);
}
+
+ if (IsPageNoStoreMode)
+ {
+ //disabling clientside validation inside AjaxPanels (not yet handled correctly)
+ DisableClientValidators();
+ }
}
#endregion
***************
*** 750,754 ****
#endregion
! #region InitValidators
/// <summary>
/// Clears 'display' and 'visibility' styles from all the validators.
--- 756,760 ----
#endregion
! #region Validators
/// <summary>
/// Clears 'display' and 'visibility' styles from all the validators.
***************
*** 764,767 ****
--- 770,782 ----
}
+
+ private void DisableClientValidators()
+ {
+ ArrayList validators = Util.GetChildControlsOfType(this, typeof(BaseValidator), true);
+ foreach (BaseValidator validator in validators)
+ {
+ validator.EnableClientScript = false;
+ }
+ }
#endregion
|