I tried to set the ajax colorpicker SelectedColor property in the code behind, and I'm getting the same error.
I tried to add this js code as recommended above:
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 (!AjaxControlToolkit.ColorPickerBehavior._colorRegex) {
AjaxControlToolkit.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}$');
}
});
But now I'm getting the error "AjaxControlToolkit" is not defined.
Tibyan
Member
3 Points
17 Posts
Re: ColorPickerExtender fails when using SelectedColor
Apr 30, 2010 10:36 AM|LINK
Hi all,
I tried to set the ajax colorpicker SelectedColor property in the code behind, and I'm getting the same error.
I tried to add this js code as recommended above:
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 (!AjaxControlToolkit.ColorPickerBehavior._colorRegex) { AjaxControlToolkit.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}$'); } });But now I'm getting the error "AjaxControlToolkit" is not defined.
Can anyone help?!