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

How to create a Style sheet for a report

1 Answer 196 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nagesh
Top achievements
Rank 1
Nagesh asked on 18 Apr 2013, 12:35 PM
Hi Team,

I have a requirement where we have several tables defined in the report. And we have to apply different styles to these tables in the code behind based on some data. I referred the following links which gives an idea.

http://www.telerik.com/help/reporting/style-using-styles-to-customize-reports.html

http://www.telerik.com/help/reporting/style-understanding-style-selectors.html

But I am not able to see a property called "Stylesheet" in the properties section of my report. I am not sure if I am missing anything.

I have attached a screen shot of where I am looking for it. Please guide me on how to actually add different stylenames at design time and access them in the code behind.

Thanks,
Nagesh

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 23 Apr 2013, 10:49 AM
Hi Nagesh,

With external style sheets you can apply general rules to all items. This means that you will want to create those general rules and after that to use them accordingly. The style sheet is applied to the report and then all items receive the style according to the style selectors. In order to better understand the style selectors please check this help article. In your case you will need to create a style rule with the respective style name at report level and then go back to your item and set the StyleName property to the one you have created previously at report level.

For more information regarding style sheets please check this article.

Regards,
IvanY
the Telerik team

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

Tags
General Discussions
Asked by
Nagesh
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or