This is a migrated thread and some comments may be shown as answers.

Color Picker in Image Manager doesn't has color palette

2 Answers 28 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Viktor
Top achievements
Rank 1
Viktor asked on 15 Feb 2013, 11:21 AM
Dear Community,

We have been using Telerik ASP.NET AJAX controls version 2012.2.912.40. We met the issue with color picker inside image manager properties pane. It doesn't contain color palette, please see attached image.

The following configuration has been used:
            FileManagerDialogParameters imageManagerParameters = new FileManagerDialogParameters();
            imageManagerParameters.ViewPaths = BrowseMediaPaths;
            imageManagerParameters.UploadPaths = UploadMediaPaths;
            imageManagerParameters.DeletePaths = DeleteMediaPaths;
            imageManagerParameters.MaxUploadFileSize = Settings.MaxImageSize;
            DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);
            imageManager.Parameters["ExternalDialogsPath"] = "~/EditorDialogs/";
            imageManager.ClientCallbackFunction = "sd.insertImage";
            imageManager.Width = Unit.Pixel(694);
            imageManager.Height = Unit.Pixel(440);
            DialogOpener1.Window.Modal = true;
            DialogOpener1.UseClassicDialogs = false;
            DialogOpener1.Window.Title = StringResource.Picture;
            DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager);
            DialogOpener1.Window.ReloadOnShow = true;

Thank you in advance for any information how to fix it.

Best regards,
Viktor Burdeinyi

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Feb 2013, 06:09 PM
Hi,

If you want to populate the color pallet with colors you should add one additional Colors parameter of type array to the DialogOpener's open method, e.g.

<button onclick="$find('<%= DialogOpener1.ClientID %>').open('ImageManager', {CssClasses: [], Colors: ['', '#000000', '#eeece1', '#1f497d', 'red', 'green', 'blue']});return false;">Open ImageManager</button>

You can see the following forum thread for more information: RadDialogOpener and Stand Alone Image manager Property custom style and color issue.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Viktor
Top achievements
Rank 1
answered on 20 Feb 2013, 07:11 AM
Thanks for the response. It works fine to me.

-Viktor
Tags
Editor
Asked by
Viktor
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Viktor
Top achievements
Rank 1
Share this question
or