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

Telerik Reporting Enhancement - Color Palette

3 Answers 391 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 29 Jul 2013, 04:11 PM
Enhancement suggestion on Telerik Reporting:
    Add "Color Palette" to list of components available on your "Telerik Reporting" components. Then developers could create their custom color palette and then in the graph control among others, allow selecting from the Color Palettes components on the report.
    Currently I have to go into the generated code section of the designer.cs and set my custom color palette for more colors (more than the examples that you provide) with
           
colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(25)))), ((int)(((byte)(18))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(46)))), ((int)(((byte)(10))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.Red);<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(90)))), ((int)(((byte)(40))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(137)))), ((int)(((byte)(104))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(211)))), ((int)(((byte)(191)))), ((int)(((byte)(105))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(137)))), ((int)(((byte)(203)))), ((int)(((byte)(42))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(180)))), ((int)(((byte)(114))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(198)))), ((int)(((byte)(198))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(105)))), ((int)(((byte)(104))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(248)))), ((int)(((byte)(255))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(43)))), ((int)(((byte)(226))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.Magenta);<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.Olive);<br>            colorPalette8.Colors.Add(System.Drawing.Color.PeachPuff);<br>            colorPalette8.Colors.Add(System.Drawing.Color.Blue);<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))));<br>            colorPalette8.Colors.Add(System.Drawing.Color.White);

and set the ColorPalette of the graph with the ColorPalette.  I have to do this for each graph control I might have.

3 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 01 Aug 2013, 11:43 AM
Hello Eric,

Thank you for the feedback, we will have that in mind.
The only suggestions that we can currently give you is to either select all the graphs and set their palettes at once (since the property is mergeable) or create the palette programmatically and  reuse it. 
 
Regards,
Elian
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Ramesh
Top achievements
Rank 1
Veteran
Iron
answered on 27 Aug 2020, 05:46 AM

Hello Elian,

How to create color palette programmatically and use it trdp telerik reports. Do you have any working samples?

your help would be much appreciated well in advance

Thank you

Ramesh R

0
Neli
Telerik team
answered on 31 Aug 2020, 12:36 PM

Hi Ramesh,

You can set the ColorPalette option from the Standalone designer:

Another option is to Set Graph ColorPalette with User Function.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Eric
Top achievements
Rank 1
Answers by
Elian
Telerik team
Ramesh
Top achievements
Rank 1
Veteran
Iron
Neli
Telerik team
Share this question
or