<script type="text/javascript">
//This code must be placed below the ScriptManager, otherwise the "Sys" cannot be used because it is undefined.
Sys.Application.add_init(function () {
// Store the color validation Regex in a "static" object off of
// AjaxControlToolkit.ColorPickerBehavior. If this _colorRegex object hasn't been
// created yet, initialize it for the first time.
if (!Sys.Extended.UI.ColorPickerBehavior._colorRegex) {
Sys.Extended.UI.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}$');
}
});
</script>
mathieu.gent...
Member
2 Points
1 Post
Re: ColorPickerExtender fails when using SelectedColor
Apr 21, 2011 09:17 AM|LINK
I made some minor changes, and now it works
<script type="text/javascript"> //This code must be placed below the ScriptManager, otherwise the "Sys" cannot be used because it is undefined. Sys.Application.add_init(function () { // Store the color validation Regex in a "static" object off of // AjaxControlToolkit.ColorPickerBehavior. If this _colorRegex object hasn't been // created yet, initialize it for the first time. if (!Sys.Extended.UI.ColorPickerBehavior._colorRegex) { Sys.Extended.UI.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}$'); } }); </script>