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

Black headings appear light grey

3 Answers 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clinton Smyth
Top achievements
Rank 1
Clinton Smyth asked on 26 Aug 2008, 11:09 PM
We've recently upgraded our reports from 2007 Q2 to 2008 Q2.  We also upgraded from VS2005 to VS2008.  One conversion (or possibly a combination of the two), resulted in some of the report fields overlapping.  We corrected this but now the headings that should be black appear as light grey.

Please note the following:
  • The column headings (correctly) appear black in the VS Designer pane.
  • This headings appear grey in the VS Preview pane as well as when deployed on the web.
  • I updated the header styles to black several times, to no avail.
  • Changing a heading to another colour or font works fine.
  • Changing the heading back to black results in a grey heading.
  • The data in the report correctly appears black.
  • The reports that didn't require field adjustment are fine.
Could it be interpreting black as some kind of 'default'?

How can we get the column headings to be black?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 27 Aug 2008, 08:31 AM
Hi Clinton Smyth,

Having the black color appear correctly in the designer means that the color is properly set to black in the InitializeComponent i.e. this.TextBox1.Style.BackgroundColor = System.Drawing.Color.Black;.
So if the color is shown as gray in the Preview, it means that something is changing it in the report constructor - can you check for such code?
What happens if you rename the textbox or delete it and re-add it and apply the same value and settings to it?

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Clinton Smyth
Top achievements
Rank 1
answered on 27 Aug 2008, 05:56 PM
Figured it out.  The problem was with the styling.  Each column heading had a StyleName of 'Caption'.  The grey colour was set there (in the report object's StyleSheet rules).  It is rather confusing though as you can set the style in 2 places, either through the StyleName or by directly specifying it in the textbox object. 

How does the Reporting module know which one to use?  Should it prioritise the object settings over the style?  Strange that the Designer view uses one and the Preview view uses the other.
0
Svetoslav
Telerik team
answered on 28 Aug 2008, 08:13 AM
Hello Clinton Smyth,

Please see the Style Inheritance and Overriding help topic that describes how the styles work. If you still experience any problem or consider that the style behavior is inconsistent with this rules we will appreciate if you send as a sample report that illustrates your scenario.

Sincerely yours,
Svetoslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Clinton Smyth
Top achievements
Rank 1
Answers by
Steve
Telerik team
Clinton Smyth
Top achievements
Rank 1
Svetoslav
Telerik team
Share this question
or